const gulp = require('gulp');
const babel = require('gulp-babel');

const srcDir = './src';
const buildDir = './lib';

gulp.task('babelify', () => {
  return gulp.src(`${srcDir}/**/*.js`)
    .pipe(babel())
    .pipe(gulp.dest(buildDir));
});

gulp.task('watch', () => {
  gulp.watch('babelify', [`${srcDir}/**/*.js`]);
})

gulp.task('default', ['babelify', 'watch']);
const gulp = require('gulp');
const babel = require('gulp-babel');

const srcDir = './src';
const buildDir = './lib';

gulp.task('babelify', () => {
  return gulp.src(`${srcDir}/**/*.js`)
    .pipe(babel())
    .pipe(gulp.dest(buildDir));
});

gulp.task('watch', () => {
  gulp.watch(`${srcDir}/**/*.js`, ['babelify']);
})

gulp.task('default', ['babelify', 'watch']);
Correct the gulp watch declaration
Correct the gulp watch declaration
