forked from finagle/finagle.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
26 lines (20 loc) · 648 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
require 'rubygems'
require 'rake/clean'
require 'fileutils'
task :default => [:update_docs, :javadoc, :build, :clean]
tmp_dir = File.join(File.dirname(__FILE__), "tmp")
CLEAN.include(tmp_dir, "**/.DS_Store")
desc "Build the website from source"
task :build do
puts "Building website from static source"
result = system("middleman build --clean")
if result
puts "Successfully generated the site, please commit your changes"
else
puts "An error was encountered when generating the site"
end
end
desc "Run the site in development mode. Preview available at http://localhost:4567/"
task :dev do
system("middleman server")
end