]>
Commit | Line | Data |
---|---|---|
1 | 'use strict'; | |
2 | ||
3 | const Gulp = require('gulp'); | |
4 | const Babel = require('gulp-babel'); | |
5 | const Concat = require('gulp-concat'); | |
6 | ||
7 | Gulp.task('build', function() { | |
8 | Gulp.src([ | |
9 | 'lib/serpentity.js', | |
10 | 'lib/serpentity/entity.js', | |
11 | 'lib/serpentity/node.js', | |
12 | 'lib/serpentity/node_collection.js', | |
13 | 'lib/serpentity/component.js', | |
14 | 'lib/serpentity/system.js' | |
15 | ]) | |
16 | .pipe(Babel({ | |
17 | presets: ['es2015'] | |
18 | })) | |
19 | .pipe(Concat('serpentity.js')) | |
20 | .pipe(Gulp.dest('dist')); | |
21 | }); |