|
@ -2,7 +2,6 @@ import gulp from 'gulp'; |
|
|
import del from 'del'; |
|
|
import del from 'del'; |
|
|
import babel from 'gulp-babel'; |
|
|
import babel from 'gulp-babel'; |
|
|
import help from 'gulp-task-listing'; |
|
|
import help from 'gulp-task-listing'; |
|
|
import { exec as enclose } from 'enclose'; |
|
|
|
|
|
|
|
|
|
|
|
gulp.task('help', help); |
|
|
gulp.task('help', help); |
|
|
|
|
|
|
|
@ -21,14 +20,6 @@ gulp.task('compile-bin', () => |
|
|
.pipe(babel()) |
|
|
.pipe(babel()) |
|
|
.pipe(gulp.dest('build/bin'))); |
|
|
.pipe(gulp.dest('build/bin'))); |
|
|
|
|
|
|
|
|
gulp.task('enclose', ['compile'], (cb) => { |
|
|
|
|
|
enclose([ |
|
|
|
|
|
'build/bin/now', |
|
|
|
|
|
'-c', 'enclose.js', |
|
|
|
|
|
'-o', 'build/now' |
|
|
|
|
|
], cb); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
gulp.task('watch-lib', () => gulp.watch('lib/**/*.js', ['compile-lib'])); |
|
|
gulp.task('watch-lib', () => gulp.watch('lib/**/*.js', ['compile-lib'])); |
|
|
gulp.task('watch-bin', () => gulp.watch('bin/*', ['compile-bin'])); |
|
|
gulp.task('watch-bin', () => gulp.watch('bin/*', ['compile-bin'])); |
|
|
gulp.task('clean', () => del(['build'])); |
|
|
gulp.task('clean', () => del(['build'])); |
|
|