forked from agreencow/puls3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
executable file
·45 lines (43 loc) · 1.09 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
module.exports = function(grunt) {
grunt.initConfig({
bb_generate: {
options: {
appname : "Puls3",
appsrc : "public/js/backbone",
routersrc : "public/js/backbone/routers/",
modelsrc : "public/js/backbone/models/",
viewsrc : "public/js/backbone/views/",
collectionsrc : "public/js/backbone/collections/",
templatesrc : "public/js/backbone/templates/"
},
router:{},
view:{},
collection:{},
model:{},
template:{}
},
uglify : {
options : {
compress:true,
report:true,
banner:'/*!<%= grunt.template.date() %> */\n'
},
app : {
files: {
'public/app.min.js' : [
'public/js/init.js',
'public/js/backbone/models/article.js',
'public/js/backbone/collections/articles.js',
'public/js/backbone/routers/base.js',
'public/js/backbone/views/article.js',
'public/js/backbone/views/articleNew.js',
'public/js/main.js'
]
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-bb-generate');
grunt.registerTask('default',['uglify']);
};