aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js
index b0bc0d7..9003b90 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -1,15 +1,19 @@
const gulp = require('gulp')
const browserify = require('gulp-browserify')
+const babel = require('gulp-babel')
// Basic usage
gulp.task('scripts', function () {
// Single entry point to browserify
- gulp.src('public/javascripts/main.js')
+ return gulp.src('public/javascripts/*.js')
+ .pipe(babel({
+ presets: ['es2015']
+ }))
.pipe(browserify({
insertGlobals: true,
debug: !gulp.env.production
}))
- .pipe(gulp.dest('public/javascripts/bundle.js'))
+ .pipe(gulp.dest('public/javascripts/dest'))
})
gulp.task('scripts:watch', function () {