-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
32 lines (23 loc) · 869 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
module.exports = function( grunt ) {
grunt.initConfig({
pkg: '<json:package.json>',
meta: {
banner: "/*! <%= pkg.name %>: <%= pkg.title %> (v<%= pkg.version %> built <%= grunt.template.today('isoDate') %>)\n" +
"<%= pkg.homepage ? '* ' + pkg.homepage + '\n' : '' %>" +
"* Copyright <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>;" +
" Licensed <%= _.pluck(pkg.licenses, 'type').join(', ') %> */"
},
concat: {
dist: {
src: [ "src/backbone-fiber.js" ],
dest: "backbone-fiber.js"
}
},
uglify: {
"backbone-fiber.min.js": [ "<banner>", "backbone-fiber.js" ]
}
});
grunt.loadNpmTasks( "grunt-contrib-uglify" );
grunt.loadNpmTasks( "grunt-contrib-concat" );
grunt.registerTask( "default", [ "concat", "uglify" ] );
};