]> git.r.bdr.sh - rbdr/serpentity/blame_incremental - gulpfile.js
Merge branch 'release/1.0.0'
[rbdr/serpentity] / gulpfile.js
... / ...
CommitLineData
1'use strict';
2
3const Gulp = require('gulp');
4const Babel = require('gulp-babel');
5const Concat = require('gulp-concat');
6const Rename = require('gulp-rename');
7const Uglify = require('gulp-uglify');
8
9Gulp.task('build', function() {
10 Gulp.src([
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 ])
18 .pipe(Babel({
19 presets: ['es2015']
20 }))
21 .pipe(Concat('serpentity.js'))
22 .pipe(Gulp.dest('dist'))
23 .pipe(Uglify())
24 .pipe(Rename({
25 suffix: '.min'
26 }))
27 .pipe(Gulp.dest('dist'));
28});