diff --git a/gulpfile.babel.js b/gulpfile.babel.js index a85344e..3f35ac2 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -4,6 +4,7 @@ import del from 'del' import babel from 'gulp-babel' import help from 'gulp-task-listing' import {crop as cropExt} from 'gulp-ext' +import cache from 'gulp-cached' gulp.task('help', help) @@ -14,11 +15,13 @@ gulp.task('compile', [ gulp.task('compile-lib', () => gulp.src('lib/**/*.js') + .pipe(cache('lib')) .pipe(babel()) .pipe(gulp.dest('build/lib'))) gulp.task('compile-bin', () => gulp.src('bin/*') + .pipe(cache('bin')) .pipe(babel()) .pipe(cropExt()) .pipe(gulp.dest('build/bin'))) diff --git a/package.json b/package.json index 26485bf..7248be5 100644 --- a/package.json +++ b/package.json @@ -109,6 +109,7 @@ "estraverse-fb": "1.3.1", "gulp": "3.9.1", "gulp-babel": "6.1.2", + "gulp-cached": "1.1.1", "gulp-ext": "1.0.0", "gulp-task-listing": "1.0.1", "pkg": "3.0.0-beta.22",