mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 10:52:17 -05:00
add grunt build step
This commit is contained in:
parent
65bfc6c44c
commit
9e460b99cc
22
Gruntfile.js
22
Gruntfile.js
@ -209,6 +209,7 @@ module.exports = function(grunt) {
|
||||
dest: 'test/integration/src/'
|
||||
}
|
||||
},
|
||||
|
||||
compress: {
|
||||
chrome: {
|
||||
options: {
|
||||
@ -219,18 +220,20 @@ module.exports = function(grunt) {
|
||||
cwd: 'dist/',
|
||||
src: ['**/*'],
|
||||
dest: 'release/'
|
||||
}
|
||||
},
|
||||
nodeWebkit: {
|
||||
|
||||
nodewebkit: {
|
||||
options: {
|
||||
mode: 'zip',
|
||||
archive: 'release/whiteout_mail_' + zipName + '.nw'
|
||||
version: '0.9.2', // node-webkit version
|
||||
build_dir: './release', // Where the build version of my node-webkit app is saved
|
||||
mac: true, // We want to build it for mac
|
||||
win: false, // We want to build it for win
|
||||
linux32: false, // We don't need linux32
|
||||
linux64: false, // We don't need linux64
|
||||
},
|
||||
src: ['./dist/**/*'] // Your node-webkit app
|
||||
},
|
||||
expand: true,
|
||||
cwd: 'dist/',
|
||||
src: ['**/*'],
|
||||
dest: '/'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Load the plugin(s)
|
||||
@ -245,6 +248,7 @@ module.exports = function(grunt) {
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||
grunt.loadNpmTasks('grunt-contrib-compress');
|
||||
grunt.loadNpmTasks('grunt-node-webkit-builder');
|
||||
|
||||
// Build tasks
|
||||
grunt.registerTask('dist-npm', ['copy:npm', 'copy:npmDev', 'copy:cryptoLib']);
|
||||
|
@ -33,6 +33,7 @@
|
||||
"grunt-autoprefixer": "~0.3.0",
|
||||
"grunt-contrib-watch": "~0.5.3",
|
||||
"grunt-contrib-copy": "~0.4.1",
|
||||
"grunt-contrib-compress": "~0.5.2"
|
||||
"grunt-contrib-compress": "~0.5.2",
|
||||
"grunt-node-webkit-builder": "~0.1.17"
|
||||
}
|
||||
}
|
@ -1,4 +1,10 @@
|
||||
{
|
||||
"name": "Whiteout Mail",
|
||||
"main": "chrome.html"
|
||||
"version": "0.0.1",
|
||||
"main": "chrome.html",
|
||||
"window": {
|
||||
"toolbar": false,
|
||||
"width": 1024,
|
||||
"height": 768
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user