Created
July 27, 2012 08:22
-
-
Save bigandy/3186823 to your computer and use it in GitHub Desktop.
sass rakefile
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
#rakefile | |
namespace :sass do | |
task :sass_environment => :environment do | |
Sass::Plugin.on_updating_stylesheet { |template, css| puts "Building #{css} from #{template}" } | |
Sass::Plugin.on_not_updating_stylesheet { |template, css| puts "Skipping #{css}" } | |
end | |
desc "Forcefully updates the stylesheets generated by SASS." | |
task :build => :sass_environment do | |
Sass::Plugin.force_update_stylesheets | |
end | |
desc "Updates the out of date stylesheets generated by SASS." | |
task :update => :sass_environment do | |
Sass::Plugin.update_stylesheets | |
end | |
end | |
task :default => 'sass:update' |
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
#output from command line after running rake | |
rake | |
rake aborted! | |
Don't know how to build task 'environment' | |
Tasks: TOP => sass:build => sass:sass_environment | |
(See full trace by running task with --trace) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment