gulp.task('babeltrance', function() {
gulp.src('./*.js', ['babeltrance'])
.pipe(plumber())
.pipe(babel({
presets: ['es2015'],
}))
.pipe(gulp.dest('./babel-dest'));
});
gulp.task('babelwatch', function() {
gulp.watch('./*.js', ['babeltrance']);
});
gulp.task('babel', ['babeltrance', 'babelwatch']);