Created
October 15, 2013 14:08
-
-
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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