const Gulp = require('gulp');
const Babel = require('gulp-babel');
const Concat = require('gulp-concat');
+const Rename = require('gulp-rename');
+const Uglify = require('gulp-uglify');
Gulp.task('build', function() {
Gulp.src([
presets: ['es2015']
}))
.pipe(Concat('serpentity.js'))
+ .pipe(Gulp.dest('dist'))
+ .pipe(Uglify())
+ .pipe(Rename({
+ suffix: '.min'
+ }))
.pipe(Gulp.dest('dist'));
});