Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 25th, 2012  |  syntax: None  |  size: 1.16 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # COMPASS WATCH
  2. desc "Watches and compiles sass to tomcat"
  3. task :watch do
  4.   puts Paint["Watching sass", :cyan]
  5.   puts "Watching: " + SRC_SCSS
  6.   puts "Compile to: " + TOMCAT_SKIN + SCSS_CSS
  7.   puts "output-style: " + SCSS_OUTPUT
  8.   Dir.chdir(COMPASS) do
  9.     system "compass watch #{SRC_SCSS}:#{TOMCAT_SKIN}# --output-style #{SCSS_OUTPUT}"
  10.   end
  11. end
  12.  
  13.  
  14.  
  15. # Require any additional compass plugins here.
  16.  
  17. # Set this to the root of your project when deployed:
  18. http_path = "/"
  19. css_dir = "/"
  20. sass_dir = "scss"
  21. images_dir = "images"
  22. javascripts_dir = "js"
  23.  
  24. # You can select your preferred output style here (can be overridden via the command line):
  25. # output_style = :expanded or :nested or :compact or :compressed
  26.  
  27. # To enable relative paths to assets via compass helper functions. Uncomment:
  28. # relative_assets = true
  29.  
  30. # To disable debugging comments that display the original location of your selectors. Uncomment:
  31. # line_comments = false
  32.  
  33.  
  34. # If you prefer the indented syntax, you might want to regenerate this
  35. # project again passing --syntax sass, or you can uncomment this:
  36. # preferred_syntax = :sass
  37. # and then run:
  38. # sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass