Automatic desktop notifications for Grunt errors and warnings. Supports OS X, Windows, Linux.
|OS X||OS X Notification Center|
|OS X||Growl for Mac|
|Windows 8||Windows 8 notifications|
|Windows||Growl for Windows|
This plugin recommends Grunt
0.4.1 or newer.
npm install grunt-notify --save-dev
Once that's done, add this line to your project's
That's all you need for automatic notifications.
If you want change the automatic messaging configure a task called
grunt;// Load the taskgrunt;// This is required if you use any options.grunttask;
Sometimes you want to show messages like "Uglify complete" or "Project Deployed" - that's easy to do too.
|Custom Message - Grunt|
|Custom Message - Notification Center|
|Custom Message - Notify-Send|
grunt;grunt;// simplified examplegrunt;
titleoptional Notification title
messagerequired Notification message
grunt to lint and run the tests.
If you are using OS X 10.8 Mountain Lion or newer a notification system is built in, but Apple does not provide a notification API that Node can access. Only code written in Objective C and signed in XCode can access it. This is not very friendly for Node users so we are using the tiny signed MIT-licensed native application Terminal Notifier from Eloy Durán. I've changed the default icon which is owned by Apple to the Grunt logo.
Requires growlnotify for OS X.
Install growlnotify from the Growl Downloads Page. This will install in
Included with Snarl.
If you have downloaded and installed Snarl from Snarl's web site you'll have the commandline tool heysnarl as well.
Requires growlnotify for Windows.
Install growlnotify from the growlnotify Page.
Nothing to install.
Create a pull request!
Nothing to install.
I created an Ubuntu virtual machine and it had
notify-send in the path.
I don't use Linux frequently so I don't know if this utility is available for other distros.
notify-send has an addition
duration option which takes a number seconds. The default is 3 seconds.
Duration doesn't work natively on some versions of Ubuntu.
Not supported yet.
Chrome has a notification system but I'm not sure if it's possible to use from a command-line Node app. Somebody could probably create a Chrome Plugin helper for this.
grunt -v (for
verbose mode) to show
grunt-notify debug messages. It will tell you what notification system
it thinks it can use. Create an issue and I'll look into it asap.
Hi! Thanks for checking out this project! My name is Dylan Greene. When not overwhelmed with my two young kids I enjoy contributing to the open source community. I'm also a tech lead at Opower.
Here's some of my other Node projects:
||Discover surprisingly large directories from the command line|
||Check for outdated, incorrect, and unused dependencies.|
||Amazingly short non-sequential url-friendly unique id generator.|
||RSS feed generator. Add RSS feeds to any project. Supports enclosures and GeoRSS.|
||Interactive prompt for your Grunt config using console checkboxes, text input with filtering, password fields.|
||Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.|
||Command line tool (and Node module) that generates a changelog in color output, markdown, or json for modules in npmjs.org's registry as well as any public github.com repo.|
||Display attention-grabbing messages in the terminal|
||Beautiful UI for showing tasks running on the command line.|
||Module information and stats for any @npmjs user|
||Echo a file to the terminal. Works with text, figlets, ascii art, and full-color ansi.|
This list was generated using anthology.
Copyright (c) 2016 Dylan Greene, contributors.
Released under the MIT license.
Screenshots are CC BY-SA (Attribution-ShareAlike).