1
0
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:
Tankred Hase 2014-03-02 23:50:16 +01:00
parent 65bfc6c44c
commit 9e460b99cc
3 changed files with 25 additions and 14 deletions

View File

@ -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']);

View File

@ -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"
}
}

View File

@ -1,4 +1,10 @@
{
"name": "Whiteout Mail",
"main": "chrome.html"
"version": "0.0.1",
"main": "chrome.html",
"window": {
"toolbar": false,
"width": 1024,
"height": 768
}
}