-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
executable file
·33 lines (32 loc) · 1.08 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('./src/package.json'),
nodewebkit: {
options: {
build_dir: './build', // Where the build version of my node-webkit app is saved
credits: './src/credits.html',
mac_icns: './icon.icns', // Path to the Mac icon file
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: './src/**/*' // Your node-webkit app
},
shell: {
open: {
command: 'open ./build/releases/<%= pkg.name %>/mac/<%= pkg.name %>.app'
},
compile: {
command: 'coffee -o ./src/js -c ./src/coffee'
},
debug: {
command: '`find . -name node-webkit | sed -n 1p` ./src'
}
}
});
grunt.loadNpmTasks('grunt-node-webkit-builder');
grunt.loadNpmTasks('grunt-shell');
grunt.registerTask('default', ['shell:debug']);
grunt.registerTask('package', ['nodewebkit','shell:compile','shell:open']);
};