]>
Commit | Line | Data |
---|---|---|
74892a8f BB |
1 | var gulp = require('gulp'); |
2 | var uglify = require('gulp-uglify'); | |
3 | var concat = require('gulp-concat'); | |
4 | ||
5 | gulp.task('build', function() { | |
6 | gulp.src([ | |
7 | 'lib/serpentity/serpentity.js', | |
8 | 'lib/serpentity/entity.js', | |
9 | 'lib/serpentity/node.js', | |
10 | 'lib/serpentity/node_collection.js', | |
11 | 'lib/serpentity/component.js', | |
12 | 'lib/serpentity/system.js', | |
13 | ]) | |
14 | .pipe(uglify()) | |
60a6915a BB |
15 | .pipe(concat('serpentity.min.js')) |
16 | .pipe(gulp.dest('dist')) | |
17 | ||
18 | gulp.src([ | |
19 | 'lib/serpentity/serpentity.js', | |
20 | 'lib/serpentity/entity.js', | |
21 | 'lib/serpentity/node.js', | |
22 | 'lib/serpentity/node_collection.js', | |
23 | 'lib/serpentity/component.js', | |
24 | 'lib/serpentity/system.js', | |
25 | ]) | |
74892a8f BB |
26 | .pipe(concat('serpentity.js')) |
27 | .pipe(gulp.dest('dist')) | |
28 | }); |