require 'rubygems' require 'rake/clean' CLEAN.include('tmp', 'Gemfile.lock') task :default => [ :gen ] desc "Compile the website templates into a static site" task :gen do system 'nanoc compile' Rake::Task[:clean].invoke end desc "Run the website locally. View at http://localhost:3000" task :run do system 'nanoc view' end desc "Watch content folder for changes and autogen the site" task :dev do system 'nanoc autocompile' end