gulp-faustao-errou
v1.0.0
Published
Gulp Error Handler, A.K.A Gulp Errrrrouuuuu!
Downloads
1
Readme
gulp-faustao-errou
Play "Errou" sound for errors.
Install
npm install --save-dev gulp-faustao-errou
Usage
var gulp = require('gulp');
var faustaoErrou = require('gulp-faustao-errou');
gulp.src('./src/*.js')
.pipe(faustaoErrou())
...,
.pipe(gulp.dest('./dist'));
API
faustaoErrou()
Plumber stream with errou
as errorHandler
.
faustaoErrou.errou(error)
Logs error
to console and plays errrrouuu sound.
var errou = require('gulp-faustao-errou').errou;
errou(new Error('Something happened!'));
faustaoErrou.handleError(stream)
Plays on stream
'error'
event and stops it from further executing.
To be used with SASS and Browserify.
var gulp = require('gulp');
var faustaoErrou = require('gulp-faustao-errou')
var sass = require('gulp-sass');
gulp.src('./src/*.scss')
.pipe(faustaoErrou.handleError(sass()))
.pipe(gulp.dest('./dist'));
Based on gulp-error-notifier