node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

gulp-alert

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 to true, gulp-alert does call the options.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 use gulp-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