Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (20 sloc) 454 Bytes
require 'nanoc3/tasks'
task :copy_assets do
sh "rsync -gprt --partial --exclude='.svn' assets/ output"
end
task :compile do
sh "nanoc3 co"
end
task :github do
sh "git push origin master"
end
task :start_server do
sh "nanoc aco"
end
task :upload do
sh "rake deploy:rsync"
end
task :build => [ :clean, :compile, :copy_assets ]
task :deploy => [ :build, :github, :upload ]
task :serve => [ :build, :start_server ]
task :default => :build