-
Notifications
You must be signed in to change notification settings - Fork 5
/
Gruntfile.js
40 lines (38 loc) · 978 Bytes
/
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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
sass: {
files: ['styles/*.{scss,sass}'],
tasks: ['sass:dist']
}
},
sass: {
dist: {
files: {
'app.css': 'styles/main.scss',
},
options: {
sourcemap: 'true'
}
}
},
nodewebkit: {
options: {
build_dir: './build', // target
mac: true,
win: false,
linux32: false,
linux64: false,
credits: "./build-templates/credits.html"
},
src: ['./*'] // source
}
});
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-node-webkit-builder');
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.registerTask('default', ['sass:dist', 'watch']);
grunt.registerTask("releasebuild", ["nodewebkit"]);
};