const gulp = require('gulp');
const _gulp = require('load-plugins')('gulp-*');

const paths = {};
paths.src = './lib/**/*.js';
paths.dist = './dist';

gulp.task('lint', () => {
  return gulp.src(paths.src)
    .pipe(_gulp.xo());
});

gulp.task('build', ['lint'], () => {
  return gulp.src(paths.src)
    .pipe(_gulp.babel())
    .pipe(gulp.dest(paths.dist));
});

gulp.task('watch', () => {
  gulp.watch(paths.src, ['build']);
});

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

@@ -375,16 +375,27 @@
 'watch',
+ %5B'build'%5D,
  () =%3E %7B

Build immediately when watcher started #86