]>
Commit | Line | Data |
---|---|---|
bf8f1394 BB |
1 | 'use strict'; |
2 | ||
f77c12fd BB |
3 | const Gulp = require('gulp'); |
4 | const Babel = require('gulp-babel'); | |
5 | const Concat = require('gulp-concat'); | |
4c329508 BB |
6 | const Rename = require('gulp-rename'); |
7 | const Uglify = require('gulp-uglify'); | |
74892a8f | 8 | |
f77c12fd BB |
9 | Gulp.task('build', function() { |
10 | Gulp.src([ | |
bf8f1394 BB |
11 | 'lib/serpentity.js', |
12 | 'lib/serpentity/entity.js', | |
13 | 'lib/serpentity/node.js', | |
14 | 'lib/serpentity/node_collection.js', | |
15 | 'lib/serpentity/component.js', | |
16 | 'lib/serpentity/system.js' | |
17 | ]) | |
f77c12fd BB |
18 | .pipe(Babel({ |
19 | presets: ['es2015'] | |
20 | })) | |
21 | .pipe(Concat('serpentity.js')) | |
4c329508 BB |
22 | .pipe(Gulp.dest('dist')) |
23 | .pipe(Uglify()) | |
24 | .pipe(Rename({ | |
25 | suffix: '.min' | |
26 | })) | |
f77c12fd | 27 | .pipe(Gulp.dest('dist')); |
74892a8f | 28 | }); |