Skip to content

Instantly share code, notes, and snippets.

@jdlich
Forked from garyt/g.compass.config
Created January 13, 2012 22:03
Show Gist options
  • Save jdlich/1608948 to your computer and use it in GitHub Desktop.
Save jdlich/1608948 to your computer and use it in GitHub Desktop.
G Compass config
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "/"
sass_dir = "scss"
images_dir = "images"
javascripts_dir = "js"
# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed
# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true
# To disable debugging comments that display the original location of your selectors. Uncomment:
# line_comments = false
# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
# COMPASS WATCH
desc "Watches and compiles sass to tomcat"
task :watch do
puts Paint["Watching sass", :cyan]
puts "Watching: " + SRC_SCSS
puts "Compile to: " + TOMCAT_SKIN + SCSS_CSS
puts "output-style: " + SCSS_OUTPUT
Dir.chdir(COMPASS) do
system "compass watch --sass-dir #{SRC_SCSS} --css-dir #{TOMCAT_SKIN} --output-style #{SCSS_OUTPUT}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment