Skip to content

Instantly share code, notes, and snippets.

@Zauberfisch
Created October 15, 2013 14:08
Show Gist options
  • Save Zauberfisch/6992149 to your computer and use it in GitHub Desktop.
Save Zauberfisch/6992149 to your computer and use it in GitHub Desktop.
Hack for IntelliJ SCSS/Compass FileWatcher. FileWather uses scss by default (/usr/bin/scss on mac), so to get it to compile to compass one can replace scss with the following code:
require 'rubygems'
version = ">= 0"
ARGV.clear
ARGV << "compile"
path = ".."
i = 0
while !File.exists?(File.join(path, "config.rb"))
if i > 3 then
puts "oh noez! no config.rb found!"
exit 1
end
path = File.join(path, "..")
i += 1
end
ARGV << path
gem 'compass', version
load Gem.bin_path('compass', 'compass', version)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment