var gulp = require('gulp');
var babel = require("gulp-babel");

gulp.task('build', () => {
    return gulp.src('src/**/*.js')
        .pipe(babel())
        .pipe(gulp.dest('dist'));
})

gulp.task('default', ['build']);

var gulp = require('gulp');
var babel = require("gulp-babel");

gulp.task('build', () => {
    return gulp.src('src/**/*.js')
        .pipe(babel())
        .pipe(gulp.dest('dist'));
})

gulp.task('watch', () => {
    return gulp.watch('src/**/*.js', ['build']);
})

gulp.task('default', ['build', 'watch']);

Add watch tasks to automatically recompile js
Add watch tasks to automatically recompile js
