-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
55 lines (40 loc) · 1.29 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// gruntfile.js
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bower_concat: {
all: {
dest: 'build/bower-concat.js',
cssDest: 'build/bower-concat.css',
exclude: [
'angular-i18n',
'jquery',
'modernizr'
],
callback: function(mainFiles, component) {
return _.map(mainFiles, function(filepath) {
// Use minified files if available
var min = filepath.replace(/\.js$/, '.min.js');
return grunt.file.exists(min) ? min : filepath;
});
},
bowerOptions: {
relative: false
}
}
},
nodemon: {
//https://github.com/ChrisWren/grunt-nodemon
dev: {
script: 'app.js',
options: {
watchedExtensions: ['js'],
ignore:['node_modules/**','bower_components/**']
}
}
},
});
grunt.loadNpmTasks('grunt-bower-concat');
grunt.loadNpmTasks('grunt-nodemon');
grunt.registerTask('default', ['nodemon','bower_concat']);
};