Skip to content

Instantly share code, notes, and snippets.

@djalmaaraujo
Created September 26, 2012 13:08
Show Gist options
  • Save djalmaaraujo/3787928 to your computer and use it in GitHub Desktop.
Save djalmaaraujo/3787928 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'sass'
require 'sass/exec'
files = Dir.glob($project.getProperty('scss'))
Dir.mkdir($project.getProperty('scss.build')) unless File.exists?($project.getProperty('scss.build'))
files.each do
| file |
puts '[SCSS] Compiling ' + File.basename(file, ".*") + '.css'
opts = Sass::Exec::Sass.new(["-t", "compressed", file, File.join($project.getProperty('scss.build'), File.basename(file, ".*") + ".css")])
opts.parsere
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment