Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basically a rewrite without all the caching logic, simply generate cs…
…s for all updated less files, rake tasks is now more:generate
- Loading branch information
Showing
6 changed files
with
130 additions
and
283 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
namespace :more do | ||
desc "Generate CSS files from LESS files" | ||
task :parse => :environment do | ||
puts "Parsing files from #{Less::More.source_path}." | ||
Less::More.parse | ||
task :generate => :environment do | ||
puts "Generating css from less files in #{Less::More.source_path}." | ||
Less::More.generate_all | ||
puts "Done." | ||
|
||
end | ||
|
||
desc "Remove generated CSS files" | ||
task :clean => :environment do | ||
puts "Deleting files.." | ||
Less::More.clean | ||
puts "Deleting all generated css files in #{Less::More.destination_path}" | ||
Less::More.remove_all_generated | ||
puts "Done." | ||
end | ||
end |
Oops, something went wrong.