Permalink
Browse files

Simplified the Rakefile

  • Loading branch information...
1 parent c7916f2 commit 23a9f16b5aeaeeb4d96ee19968ab3dccadf56dad @wafflesnatcha wafflesnatcha committed Aug 16, 2012
Showing with 9 additions and 11 deletions.
  1. +9 −11 files/Rakefile
View
@@ -1,20 +1,18 @@
-COMPASS_PROJECT = File.dirname(__FILE__)
-
task :default do
- exec("rake --rakefile '#{__FILE__}' --tasks")
+ exec("rake -sT")
end
-desc "Switch to the development environment"
-task :development => ["clean"] do
- system("cd '#{COMPASS_PROJECT}' &>/dev/null && compass compile --time -e development")
+desc "Compile Sass stylesheets to CSS"
+task :compass => ["clean"] do
+ system("compass compile")
end
-desc "Switch to the production environment"
-task :production => ["clean"] do
- system("cd '#{COMPASS_PROJECT}' &>/dev/null && compass compile --time -e production --force")
+desc "Watch for changes and compile"
+task :watch do
+ exec("compass watch")
end
-desc "Remove cache and generated files"
+desc "Remove generated files and the sass cache"
task :clean do
- system("cd '#{COMPASS_PROJECT}' &>/dev/null && compass clean")
+ system("compass clean")
end

0 comments on commit 23a9f16

Please sign in to comment.