dylang / grunt-notify

Automatic Notifications when Grunt tasks fail.
https://npmjs.org/package/grunt-notify
MIT License
921 stars 73 forks source link

Supporting successful grunt executions notification #82

Closed elvanja closed 9 years ago

elvanja commented 9 years ago

Hi!

Needed an option to automatically support success notifications, e.g. when grunt target is completed without issues. Specifically wanted this for watch, so console can be in the background. My grunt setup is a bit contrived since it is a part of maven multimodule project and some tasks are generated dynamically, hence the need to notify of success by default.

Added the option to turn on this behavior, off by default. lib/hooks/notify-fail.js might be a bit wrong place for this (based on file name), but it felt most natural to place it there.

Also, added an option to set the duration option for notify-send.

Kudos for the plugin :-)