gulp-alert
installation
npm install gulp-alert
usage
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-alert
does call theoptions.command
when 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-alert
in.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