-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathGruntfile.js
More file actions
63 lines (61 loc) · 2.26 KB
/
Gruntfile.js
File metadata and controls
63 lines (61 loc) · 2.26 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
module.exports = function(grunt) {
grunt.initConfig({
concat: {
options: {
separator: ";\n"
},
javascript: {
src: [
'./bower_components/jquery/jquery.min.js',
'./bower_components/moment/min/moment.min.js',
'./bower_components/underscore/underscore-min.js',
'./bower_components/angular/angular.min.js',
'./bower_components/angular-ui-router/release/angular-ui-router.min.js',
'./app/common/firebase.js',
'./bower_components/angularfire/angularfire.min.js',
'./bower_components/ngstorage/ngStorage.min.js'
],
dest: './build/js/base.js'
}
},
uglify: {
dist: {
files: {
'./build/js/base.min.js': './build/js/base.js'
}
}
},
less: {
development: {
files: {
"./build/css/base.css": "./bower_components/bootstrap/less/bootstrap.less",
}
}
},
cssmin: {
combine: {
files: {
'./build/css/base.min.css': './build/css/base.css'
}
}
},
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: false, // We want to build it for win
linux32: false, // We don't need linux32
linux64: false // We don't need linux64
},
src: ['./**/*'] // Your node-wekit app
}
});
grunt.loadNpmTasks('grunt-node-webkit-builder');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('default', ['concat', 'uglify', 'less', 'cssmin']);
grunt.registerTask('compile', ['concat', 'uglify', 'less', 'cssmin', 'nodewebkit']);
};