gulp-plumber

WebJar for gulp-plumber

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

gulp-plumber
Last Version

Last Version

1.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

gulp-plumber
WebJar for gulp-plumber
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/floatdrop/gulp-plumber

Download gulp-plumber

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/gulp-plumber/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>gulp-plumber</artifactId>
    <version>1.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/gulp-plumber/
implementation 'org.webjars.npm:gulp-plumber:1.2.1'
// https://jarcasting.com/artifacts/org.webjars.npm/gulp-plumber/
implementation ("org.webjars.npm:gulp-plumber:1.2.1")
'org.webjars.npm:gulp-plumber:jar:1.2.1'
<dependency org="org.webjars.npm" name="gulp-plumber" rev="1.2.1">
  <artifact name="gulp-plumber" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='gulp-plumber', version='1.2.1')
)
libraryDependencies += "org.webjars.npm" % "gulp-plumber" % "1.2.1"
[org.webjars.npm/gulp-plumber "1.2.1"]

Dependencies

compile (4)

Group / Artifact Type Version
org.webjars.npm : chalk jar [1.1.3,2)
org.webjars.npm : fancy-log jar [1.3.2,2)
org.webjars.npm : plugin-error jar [0.1.2,0.2)
org.webjars.npm : through2 jar [2.0.3,3)

Project Modules

There are no modules declared in this project.

๐Ÿ’ gulp-plumber

NPM version Build Status Dependency Status

Prevent pipe breaking caused by errors from gulp plugins

This ๐Ÿ’ -patch plugin is fixing issue with Node Streams piping. For explanations, read this small article.

Briefly it replaces pipe method and removes standard onerror handler on error event, which unpipes streams on error by default.

Usage ๐Ÿ’

First, install gulp-plumber as a development dependency:

npm install --save-dev gulp-plumber

Then, add it to your gulpfile.js:

var plumber = require('gulp-plumber');
var coffee = require('gulp-coffee');

gulp.src('./src/*.ext')
	.pipe(plumber())
	.pipe(coffee())
	.pipe(gulp.dest('./dist'));

API ๐Ÿ’

๐Ÿ’ plumber([options])

Returns Stream, that fixes pipe methods on Streams that are next in pipeline.

options

Type: Object / Function Default: {}

Sets options described below from its properties. If type is Function it will be set as errorHandler.

options.inherit

Type: Boolean Default: true

Monkeypatch pipe functions in underlying streams in pipeline.

options.errorHandler

Type: Boolean / Function
Default: true

Handle errors in underlying streams and output them to console.

  • function - it will be attached to stream on('error').
  • false - error handler will not be attached.
  • true - default error handler will be attached.

plumber.stop()

This method will return default behaviour for pipeline after it was piped.

var plumber = require('gulp-plumber');

gulp.src('./src/*.scss')
    .pipe(plumber())
    .pipe(sass())
    .pipe(uglify())
    .pipe(plumber.stop())
    .pipe(gulp.dest('./dist'));

License ๐Ÿ’

MIT License

Versions

Version
1.2.1
1.2.0
1.0.1