Permalink
Browse files

comments in Rakefile

  • Loading branch information...
1 parent 09c24b1 commit c8ea698dfea112261d48934ed68f458dea702451 @jlong committed May 7, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 Rakefile
View
@@ -3,12 +3,17 @@ task :styles do
root = File.dirname(__FILE__)
src = File.join(root, 'src', 'typeset.scss')
dest = File.join(root, 'typeset.css')
+
+ # Convert Scss source to CSS
sh "sass --style expanded #{src} #{dest}"
+
+ # Massage output
IO.write(dest,
IO.read(dest)
.gsub(%r{\*/\n/\*}, "*/\n\n/*")
.gsub(%r{(/\*\n [A-Za-z.:; -]+\n\*/)}, "\\1\n")
)
end
+# Make default task generate CSS
task :default => :styles

0 comments on commit c8ea698

Please sign in to comment.