Created
August 24, 2011 21:35
-
-
Save imathis/1169312 to your computer and use it in GitHub Desktop.
Rakefile
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
namespace :compass do | |
desc "Watch Sass files with Compass" | |
task :watch do | |
system "compass watch" | |
end | |
end | |
namespace :jekyll do | |
desc "Watch #{source_dir} directory and recompile on changes" | |
task :auto do | |
system "jekyll --auto" | |
end | |
end | |
namespace :rack do | |
desc "Serve up the #{public_dir} directory at http://localhost:#{server_port}/" | |
task :start do | |
system "rackup --port #{server_port}" | |
end | |
end | |
desc "Watching the site and regenerate on changes" | |
multitask :watch => ['compass:watch', 'jekyll:auto'] | |
desc "Watching the site and regenerate on changes" | |
multitask :preview => ['compass:watch', 'jekyll:auto', 'rack:start'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment