Skip to content

Commit

Permalink
fix(gen:gulp:watch): for some reason gulp-if isn't working inside laz…
Browse files Browse the repository at this point in the history
…ypipe
  • Loading branch information
Awk34 committed May 2, 2016
1 parent 5a21831 commit 5747739
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const mocha = lazypipe()
});

const transpile = lazypipe()
.pipe(() => gulpIf(watching, plumber()))
.pipe(babel);

gulp.task('clean', () => {
Expand All @@ -37,10 +36,12 @@ gulp.task('clean', () => {

gulp.task('babel', () => {
let generators = gulp.src(['src/generators/**/*.js'])
.pipe(gulpIf(watching, plumber()))
.pipe(transpile())
.pipe(gulp.dest('generators'));

let test = gulp.src(['src/test/**/*.js'])
.pipe(gulpIf(watching, plumber()))
.pipe(transpile())
.pipe(gulp.dest('test'));

Expand Down

0 comments on commit 5747739

Please sign in to comment.