gulp-plumber

WebJar for gulp-plumber

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

gulp-plumber
Последняя версия

Последняя версия

1.2.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

gulp-plumber
WebJar for gulp-plumber
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать gulp-plumber

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
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)

Модули Проекта

Данный проект не имеет модулей.

🐒 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

Версии библиотеки

Версия
1.2.1
1.2.0
1.0.1