Skip to content

Instantly share code, notes, and snippets.

@glasner
Created March 28, 2010 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glasner/347047 to your computer and use it in GitHub Desktop.
Save glasner/347047 to your computer and use it in GitHub Desktop.
namespace :jammit do
desc "creates bundles"
task :bundle do
sh "jammit -f"
end
end
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