]> git.r.bdr.sh - rbdr/serpentity/blame - gulpfile.js
Adds new dist files
[rbdr/serpentity] / gulpfile.js
CommitLineData
bf8f1394
BB
1'use strict';
2
f77c12fd
BB
3const Gulp = require('gulp');
4const Babel = require('gulp-babel');
5const Concat = require('gulp-concat');
4c329508
BB
6const Rename = require('gulp-rename');
7const Uglify = require('gulp-uglify');
74892a8f 8
f77c12fd
BB
9Gulp.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});