Commit e2feb08a authored by Jonne Haß's avatar Jonne Haß

site: add helper task to serve the site

parent 977818dc
......@@ -22,10 +22,20 @@ file "source/index.md" => "../README.md" do |t|
File.write t.name, source
end
task :build => %w(source/index.md source/protocol.md install_schemas source/docson) do
task :prepare => %w(source/index.md source/protocol.md install_schemas source/docson)
desc "Build site locally"
task :build => :prepare do
sh "bundle exec middleman build"
end
desc "Start development server"
task :serve => :prepare do
sh "bundle exec middleman"
end
desc "Build and deploy site"
task :deploy => :build do
sh "bundle exec middleman deploy"
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment