-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathGruntfile.js
29 lines (29 loc) · 940 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
module.exports = function (grunt) {
// 项目配置
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: '\n\r'
},
dist: {
src: [
'src/Transitions.js',//无依赖
'src/Tween.js',//依赖juggle-help,juggle-event,juggle-juggler,transitions
'src/TweenPool.js'//依赖Tween,juggle-help
],
dest: 'dist/<%= pkg.name %>.js'
}
},
uglify: {
build: {
src: 'dist/<%= pkg.name %>.js',
dest: 'dist/<%= pkg.name %>.min.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
// 默认任务
grunt.registerTask('default', ['concat', 'uglify']);
};