Quantcast
Channel: ghettocooler.net » interweb
Viewing all articles
Browse latest Browse all 27

Mountain Lion Notification after SASS compiling

$
0
0

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:

  1. Install the terminal-notifier ruby gem, as instructed on their Github page.
  2. Git clone Notifompass into your /Library/Ruby/Gems/1.8/gems/ directory.
  3. In Terminal, navigate to /Library/Ruby/Gems/1.8/gems/Notifompass
  4. run sudo gem build notifompass.gemspec , this builds Notifompass into an installable gem file.
  5. Insall the gem: sudo gem install --local notifompass-0.0.0.gem
  6. 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!


Viewing all articles
Browse latest Browse all 27

Trending Articles