-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
60 lines (52 loc) · 2.05 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
49
50
51
52
53
54
55
56
57
58
59
60
module.exports = function (grunt) {
grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
concat : {
dist: {
src : [
'src/export/utils/json2.js',
'src/export/utils/utils.js',
'src/export/utils/keyframes.js',
'src/export/utils/motionpath.js',
'src/export/utils/logger.js',
'src/export/utils/gl-matrix.js',
'src/export/utils/filesystem.js',
'src/export/transform/transform.js',
'src/export/transform/anchor.js',
'src/export/transform/scale.js',
'src/export/transform/position.js',
'src/export/transform/rotation.js',
'src/export/transform/opacity.js',
'src/export/element/comp.js',
'src/export/element/layer.js',
'src/export/element/animationGroup.js',
'src/export/element/rect.js',
'src/export/element/ellipse.js',
'src/export/element/fill.js',
'src/export/property/property.js',
'src/export/property/staticProperty.js',
'src/export/property/animatedProperty.js',
'src/export/main.jsx'
],
dest: 'dist/brundlefly-export.jsx'
}
},
'string-replace': {
dist: {
files : {
'dist/brundlefly-export.jsx': 'dist/brundlefly-export.jsx'
},
options: {
replacements: [{
pattern : /#include.*/g,
replacement: ''
}]
}
}
}
});
//
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-string-replace');
grunt.registerTask('build', ['concat', 'string-replace']);
};