gulp-alert

0.0.8 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-alert

Weekly Downloads

1

Version

0.0.8

License

ISC

Last publish

Collaborators

  • romeovs