floatdrop / gulp-plumber

Fixing Node pipes
MIT License
807 stars 32 forks source link

Using plumber in a sub section of the pipeline #10

Closed nfroidure closed 10 years ago

nfroidure commented 10 years ago
gulp.src()
  .pipe(plumber())
  .pipe(myPlugin)
  .pipe(plumber.stop())
  .pipe(anotherPlugin())
  .pipe(gulp.dest())

Gulp plumber would not patch the pipe method of a plugin by simply testing if it's contructor match plumber.stop.

dashed commented 10 years ago

Where's the stop function coming from?

On Mon, Mar 24, 2014 at 5:55 AM, Nicolas Froidure notifications@github.comwrote:

gulp.src() .pipe(plumber()) .pipe(myPlugin) .pipe(plumber.stop) .pipe(anotherPlugin()) .pipe(gulp.dest())

Gulp plumber would not patch the pipe method of a plugin by simply testing it's equalty with plumber.stop.

Reply to this email directly or view it on GitHubhttps://github.com/floatdrop/gulp-plumber/issues/10 .

nfroidure commented 10 years ago

It's just a suggestion ;)

floatdrop commented 10 years ago

For one plugin patching you could use inherit: false option.

nfroidure commented 10 years ago

@floatdrop thx for the tip, but i simplified my use case, i'd like to do it for several plugins.

floatdrop commented 10 years ago

@nfroidure now you can - https://github.com/floatdrop/gulp-plumber#plumberstop

nfroidure commented 10 years ago

@floatdrop awesome!