Browse Source

Tell gulp to cache

master
Leo Lamprecht 8 years ago
parent
commit
0754cffa11
No known key found for this signature in database GPG Key ID: B08517883D5E0E10
  1. 3
      gulpfile.babel.js
  2. 1
      package.json

3
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')))

1
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",

Loading…
Cancel
Save