Permalink
Browse files

Added task for compiling the Tumblr CSS file

  • Loading branch information...
1 parent 4dc6b2d commit 7e7faf612ee9739239273a39160d240af72fb052 @johanbrook committed Jul 17, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 Rakefile
View
@@ -1,13 +1,16 @@
require "rake"
scss_file = "./theme/assets/stylesheets/master.scss"
+tumblr_file = "./theme/assets/stylesheets/tumblr.scss"
coffee_file = "./theme/assets/javascripts/main.js.coffee"
css_file = "./assets/stylesheets/master.css"
+tumblr_out_file = "./assets/stylesheets/tumblr.css"
js_file = "./assets/javascripts/main.js"
files = [
css_file,
- js_file
+ js_file,
+ tumblr_out_file
]
desc "Compile Sass and CoffeeScript"
@@ -21,6 +24,12 @@ task :sass do
puts "* #{File.basename scss_file} compiled for production to #{File.basename css_file}"
end
+desc "Compile the stand-alone Tumblr Sass file"
+task :tumblr do
+ puts `sass #{tumblr_file}:#{tumblr_out_file} --style compressed`
+ puts "* Tumblr file compiled for production"
+end
+
desc "Compile CoffeeScript for production"
task :coffee do

0 comments on commit 7e7faf6

Please sign in to comment.