aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2016-03-27 23:24:47 -0600
committerBen Beltran <ben@nsovocal.com>2016-03-27 23:24:47 -0600
commitf77c12fd8d3f6c35ea61413d0544a0cd7030c849 (patch)
tree0d8fe81b9b3baa94cda4f65fff23f27a5991b464
parente1d0944b599a85a46767fdf1f12e31e8fca98956 (diff)
Uses babel on build
-rw-r--r--gulpfile.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 3c43529..edd97d0 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -1,10 +1,11 @@
'use strict';
-let gulp = require('gulp');
-let concat = require('gulp-concat');
+const Gulp = require('gulp');
+const Babel = require('gulp-babel');
+const Concat = require('gulp-concat');
-gulp.task('build', function() {
- gulp.src([
+Gulp.task('build', function() {
+ Gulp.src([
'lib/serpentity.js',
'lib/serpentity/entity.js',
'lib/serpentity/node.js',
@@ -12,6 +13,9 @@ gulp.task('build', function() {
'lib/serpentity/component.js',
'lib/serpentity/system.js'
])
- .pipe(concat('serpentity.js'))
- .pipe(gulp.dest('dist'));
+ .pipe(Babel({
+ presets: ['es2015']
+ }))
+ .pipe(Concat('serpentity.js'))
+ .pipe(Gulp.dest('dist'));
});