mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
Simplifying clean task.
* Make it less needlessly noisy (no need to enumerate all files when doing rm_rf). * Explicitly nuking screen.css is superflous as `compass clean` will do this for us. * Make task description more accurate about what's happening. * Make task feedback less redundant (details of what was removed are right above it).
This commit is contained in:
parent
f64fa33d69
commit
a7d112b38e
7
Rakefile
7
Rakefile
@ -215,12 +215,11 @@ task :integrate do
|
||||
FileUtils.mv Dir.glob("#{full_stash_dir}/*.*"), "#{configuration[:source]}/#{configuration[:posts_dir]}/"
|
||||
end
|
||||
|
||||
desc "Clean out caches: .pygments-cache, .gist-cache, .sass-cache"
|
||||
desc "Clean out caches: .pygments-cache, .gist-cache, .sass-cache, and Compass-generated files."
|
||||
task :clean do
|
||||
[".pygments-cache/**", ".gist-cache/**"].each { |dir| rm_rf Dir.glob(dir) }
|
||||
rm "#{configuration[:source]}/stylesheets/screen.css" if File.exists?("#{configuration[:source]}/stylesheets/screen.css")
|
||||
rm_rf [".pygments-cache", ".gist-cache"]
|
||||
system "compass clean"
|
||||
puts "## Cleaned Sass, Pygments and Gist caches, removed generated stylesheets ##"
|
||||
puts "## Cleaned Sass-generated files, and various caches ##"
|
||||
end
|
||||
|
||||
desc "Update theme source and style"
|
||||
|
Loading…
Reference in New Issue
Block a user