-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathGruntfile.js
32 lines (30 loc) · 855 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
/**
* @author xiaojue[[email protected]]
* @fileoverview gruntfile for ES-shim
* @date 20150209
*/
var banner = '/* \r\n <%=pkg.name%> \r\n @author <%=pkg.author.name%> [<%=pkg.author.email%>] \r\n @fileoverview <%=pkg.description%> \r\n @vserion <%=pkg.version%> \r\n */\r\n';
module.exports = function(grunt) {
grunt.initConfig({
pkg:grunt.file.readJSON('package.json'),
concat:{
options:{
banner:banner
},
files:{
src:'',
dest:''
}
},
uglify:{
options:{
banner:banner
},
files:{
}
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', ['concat','uglify']);
};