Natural Performance Manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

gulp-faustao-errou

1.0.0 • Public • Published

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

Keywords

none

install

npm i gulp-faustao-errou

Downloadsweekly downloads

3

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability