gulp-finish
Handler error of gulp plugins and end gulp task
Last updated 4 years ago by szmtcjm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-finish 
SYNC missed versions from official npm registry.

gulp-finish

Build Status

Yet, it's same as gulp-plumber. But gulp-finish just stop gulp task when gulp plugins emit 'error' events.

Usage

Install

npm install --save-dev gulp-finish

Example gulpfile

var finish = require('gulp-finish');
var plugin = require('gulp-plugin');

gulp.src('./src/*.ext')
    .pipe(finish())
    .pipe(plugin())
    .pipe(gulp.dest('./dist'));

You can pass in a callback for 'error' event of gulp plugin.

var finish = require('gulp-finish');
var plugin = require('gulp-plugin');

gulp.src('./src/*.ext')
    .pipe(finish(function() {
      // do something
    }))
    .pipe(plugin())
    .pipe(gulp.dest('./dist'));

License

MIT

Current Tags

  • 0.1.2                                ...           latest (4 years ago)

3 Versions

  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (13)

Copyright 2014 - 2017 © taobao.org |