I was tired of hitting refresh on my browser only to find out Compass/SASS CSS files had not yet been compiled.
To add a notification in Mountain Lion when your files are compiled, do the following:
- Install the terminal-notifier ruby gem, as instructed on their Github page.
- Git clone Notifompass into your /Library/Ruby/Gems/1.8/gems/ directory.
- In Terminal, navigate to /Library/Ruby/Gems/1.8/gems/Notifompass
sudo gem build notifompass.gemspec, this builds Notifompass into an installable gem file.
- Install the gem:
sudo gem install --local notifompass-0.0.0.gem
- add the following in your Compass config.rb file, as instructed in the Notifompass read me file
EXCEPTIONS = [StandardError, ScriptError] begin require "notifompass" rescue *EXCEPTIONS puts "You don't have notifompass gem installed." begin require "compass-growl" rescue *EXCEPTIONS puts "You don't have compass-growl installed either!" end end
Now, whenever your Compass/SASS files have compiled, you’ll be notified. Exciting stuff!