-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathGruntfile.js
39 lines (33 loc) · 1.12 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
module.exports = function(grunt) {
grunt.initConfig({
bower: {
install: {
//just run 'grunt bower:install' and you'll see files from your Bower packages in lib directory
}
},
requirejs: {
compile: {
options: {
baseUrl: 'public/scripts/lib',
mainConfigFile: 'public/scripts/main.js',
preserveLicenseComments: false, //comment in production
out: 'public/scripts/webapp.min.js',
optimize: 'uglify2',
include: ['../main']
}
}
},
nodemon: {
dev: {
script: 'server.js'
}
}
});
grunt.loadNpmTasks('grunt-npm-install');
grunt.loadNpmTasks('grunt-bower-installer');
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-nodemon');
grunt.registerTask('init', ['npm-install', 'bower:install']);
grunt.registerTask('compile', ['requirejs:compile']);
grunt.registerTask('start', ['nodemon']);
};