-
Notifications
You must be signed in to change notification settings - Fork 71
/
Gruntfile.js
42 lines (36 loc) · 962 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
41
42
var JS_VENDOR_PATH = 'js/vendor',
CSS_VENDOR_PATH = 'css/vendor';
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-bowercopy');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.initConfig({
clean: {
'vendor-js': JS_VENDOR_PATH,
'vendor-css': CSS_VENDOR_PATH
},
bowercopy: {
options: {
},
js: {
options: {
destPrefix: JS_VENDOR_PATH
},
files: {
'todomvc-common.js' : 'todomvc-common/base.js',
'jquery.js' : 'jquery/jquery.js',
'underscore.js' : 'underscore/underscore.js',
'backbone.js' : 'backbone/backbone.js'
}
},
css: {
options: {
destPrefix: CSS_VENDOR_PATH
},
files: {
'todomvc-common.css':'todomvc-common/base.css'
}
}
}
});
grunt.registerTask('default', ['clean','bowercopy']);
};