Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

A hacky way of forcing gulp to use plumber by default.

License

Notifications You must be signed in to change notification settings

MarcelRobitaille/gulp-autoplumb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm downloads Git issues npm version license

gulp-autoplumb

A hacky way of forcing gulp to use plumber by default. See gulp-plumber. Use at your own risk.

Installation

npm i gulp-autoplumb

Usage

Use as if it were gulp:

const gulp = require('gulp-autoplumb')

gulp.task('default', function(){
  gulp.src('./some/file')
    .pipe(someFunction())
    ...
})

Changing the error handler

const gulp = require('gulp-autoplumb')

gulp.handler = function(err){
  console.log(err.fileName)
  console.log(err.stack)
  this.emit('end')
}

If you want plumber to work properly, be sure to include this.emit('end').

How it works

This module will replace gulp.src with a proxy function. This function return's the original gulp.src and pipes plumber onto it.

License

MIT License

About

A hacky way of forcing gulp to use plumber by default.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published