Growl notifications for the Node.js CoffeeScript complier

Two things I've been working with lately have been Node.js and CoffeeScript. If you haven't heard of either, Node.js is server side javascript and CoffeeScript is a ruby/python like langage that compiles down to regular javascript.

The way I develop my CoffeeScript is by using the Node.js compiler to watch my for any changes and compile it into normal JavaScript every time I save my file. The process is instant, but I need to watch my terminal window to see if there were any compiling errors. As you can imagine, this can get fairly annoying especially if you aren't on dual monitors.

So, my solution was to write a Node.js module that would send a growl notification to the user when the compile was finished. I made use of the growlnotify command line plugin for OSX.

Screen 20shot 202011 07 19 20at 201 34 40 20AM

To use, you need to first install growlnotify.

Then use NPM to install the package npm install coffeescript-growl

Finally, require (with -r or --require) the module when you compile your script. I like to use something like this:

coffee -r coffeescript-growl --watch --compile ~/sites/my_project/

Thats it! If you have any suggestions or fixes, please fork me on github and follow me on twitter.

Find an issue with this post? Think you could clarify, update or add something?

All my posts are available to edit on Github. Any fix, little or small, is appreciated!

Edit on Github

Syntax Podcast

Hold on — I'm grabbin' the last one.

Listen Now →
Syntax Podcast

@wesbos Instant Grams

Master Gatsby

Master Gatsby

Building modern websites is tough. Preloading, routing, compression, critical CSS, caching, scaling and bundlers all make for blazing fast websites, but extra development and tooling get in the way.

Gatsby is a React.js framework that does it all for you. This course will teach you how to build your websites and let Gatsby take care of all the Hard Stuff™.
I post videos on and code on

Wes Bos © 1999 — 2021