-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
41 lines (32 loc) · 1.06 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
'use strict';
var exec = require('child_process').exec;
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
nodewebkit: {
options: {
build_dir: './webkitbuilds', // Where the build version of my node-webkit app is saved
mac: true, // We want to build it for mac
win: true, // We want to build it for win
linux32: false, // We don't need linux32
linux64: true // We don't need linux64
},
src: ['app.nw/**/*'] // Your node-wekit app
},
watch: {
run : {
files: 'app.nw/**/*',
tasks: ['run']
}
}
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-node-webkit-builder');
//grunt.loadNpmTasks('grunt-contrib-copy');
// Default task.
grunt.registerTask('default', ['nodewebkit']);
grunt.registerTask('run', 'Run node-webkit app', function () {
exec('nw app.nw');
});
};