-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
40 lines (37 loc) · 1.37 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
module.exports = function( grunt ) {
grunt.loadNpmTasks( 'grunt-contrib-concat' );
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
grunt.initConfig({
pkg: grunt.file.readJSON( 'package.json' ),
concat: {
options: {
separator: '\n\n',
banner: '/**\n * <%= pkg.title %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>' +
'\n * Description: Velocity Breeze provides default implementation and bootstrapping of Velocity Components using Breeze.' +
'\n * License: <%= pkg.license %>' +
'\n * Author: <%= pkg.author %>' +
'\n */\n\n'
},
dist: {
src: [ 'src/**/*.js'
],
dest: 'dist/velocity-breeze.js'
}
},
uglify: {
options: {
banner: '/**\n * <%= pkg.title %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>' +
'\n * Description: Velocity Breeze provides default implementation and bootstrapping of Velocity Components using Breeze.' +
'\n * License: <%= pkg.license %>' +
'\n * Author: <%= pkg.author %>' +
'\n */\n\n'
},
main_target: {
files: {
'dist/velocity-breeze.min.js': [ 'dist/velocity-breeze.js' ]
}
}
}
});
grunt.registerTask( 'default', [ 'concat', 'uglify' ] );
};