Skip to content

Instantly share code, notes, and snippets.

@imathis
Created August 24, 2011 21:35
Show Gist options
  • Save imathis/1169312 to your computer and use it in GitHub Desktop.
Save imathis/1169312 to your computer and use it in GitHub Desktop.
Rakefile
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