Add babel task and move to src directory

This commit is contained in:
Blade Barringer
2015-09-17 17:40:59 -05:00
parent 993b568ad8
commit 85a16b62e5
13 changed files with 31 additions and 10 deletions

16
tasks/gulp-babelify.js Normal file
View File

@@ -0,0 +1,16 @@
import gulp from 'gulp';
import babel from 'gulp-babel';
const ES2015_SOURCE = 'common/script/src/**/*.js';
const ES2015_DIST = 'common/dist/scripts/';
gulp.task('babel:common', () => {
return gulp.src(ES2015_SOURCE)
.pipe(babel())
.pipe(gulp.dest(ES2015_DIST));
});
gulp.task('babel:common:watch', () => {
gulp.watch([ES2015_SOURCE], ['babel:common']);
});