~mrls/www

916b7edd0807ba3b71b68196cf5a74ac7f3fbe52 — Mauro Morales 2 months ago dac2b3f
Add rake tasks
1 files changed, 19 insertions(+), 0 deletions(-)

A Rakefile
A Rakefile => Rakefile +19 -0
@@ 0,0 1,19 @@
require 'html-proofer'

desc 'Build the site'
task :build do
  sh 'jekyll', 'build'
end

desc 'Run the tests'
task :test do
  Rake::Task[:build].execute
  options = { :assume_extension => true }
  HTMLProofer.check_directory("./_site", options).run
end

desc 'Deploy'
task :deploy do
  Rake::Task[:test].execute
  sh "rsync -avz --delete _site/* #{ENV['DEST']}"
end