Created
March 28, 2010 21:20
-
-
Save glasner/347047 to your computer and use it in GitHub Desktop.
This file contains 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
namespace :jammit do | |
desc "creates bundles" | |
task :bundle do | |
sh "jammit -f" | |
end | |
end | |
This file contains 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
namespace :sass do | |
desc "create css from sass files" | |
task :compile do | |
# I'm storing my sass in root/sass so you might have to adjust | |
sass = Dir.glob("sass/**/*") | |
sass.delete_if { |file| file.include?('_') or !file.include?('.') } | |
sass.each do |path| | |
file = path.slice(5..-6) | |
sh "sass --style compressed #{path} public/stylesheets/#{file}.css" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment