-
Notifications
You must be signed in to change notification settings - Fork 39
/
Gruntfile.js
48 lines (39 loc) · 1.23 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
46
47
48
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat : {
options: {
separator: ';'
},
dist: {
src: [
'src/tools/tools.core.js',
'src/tools/tools.bom.js',
'src/tools/tools.cookie.js',
'src/tools/tools.event.js',
'src/tools/tools.html.js',
'src/tools/tools.render.js',
'src/tools/tools.storage.js',
'src/tools/tools.str.js',
'src/tools/tools.report.js',
'src/tools/tools.mobile.js'
],
dest: 'dist/tools/tools.js'
}
},
copy : {
dist : {
src : ['src/**' , '!src/tools/**'],
dest : 'dist',
cwd : 'src'
}
},
clean : {
dist : 'dist'
}
});
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadTasks("tasks");
// 默认被执行的任务列表。
grunt.registerTask('default', ['clean:dist' , 'copy:dist' , 'concat:dist']);
};