forked from rotundasoftware/backbone-courier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
37 lines (33 loc) · 860 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
module.exports = function( grunt ) {
grunt.initConfig( {
pkg : grunt.file.readJSON( "package.json" ),
banner : "/*\n" +
" * Backbone.Courier, v<%= pkg.version %>\n" +
" * Copyright (c)2013 Rotunda Software, LLC.\n" +
" * Distributed under MIT license\n" +
" * http://github.com/rotundasoftware/backbone.courier\n" +
"*/\n",
concat : {
options : {
banner : "<%= banner %>",
stripBanners : true
},
js : {
src : ["src/backbone.courier.js"],
dest : "dist/backbone.courier.js"
}
},
uglify : {
options : {
banner : "<%= banner %>"
},
dist : {
src : "<%= concat.js.dest %>",
dest : "dist/backbone.courier.min.js"
}
}
} );
grunt.loadNpmTasks( "grunt-contrib-concat" );
grunt.loadNpmTasks( "grunt-contrib-uglify" );
grunt.registerTask( "default", [ "concat", "uglify" ] );
};