0.0.8 • Published 10 years ago
gulp-alert v0.0.8
gulp-alert
installation
npm install gulp-alertusage
import alert from 'gulp-alert'
gulp.src(['some', 'files'])
.pipe(alert(options))
.pipe(/* some other plugin */)
// ...options
options.command(beep): The command to run when an error occurs (I use it to play an error sound, but you could use it to display a notification etc.)options.silent(false): If set totrue,gulp-alertdoes call theoptions.commandwhen an error occurs.options.name(NO_NAME): The name used when logging the error to the screen. Use this to denote the pipeline you usegulp-alertin.options.onError: if set, this function will be called with the error as first parameter whenever an error occurs.
License
This code is licensed under the ISC license