Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 438 Bytes
desc "compile and run the site"
task :default do
pids = [
spawn("bundle exec jekyll serve --watch"),
spawn("bundle exec scss --quiet --watch stylesheets/scss:stylesheets"),
spawn("coffee -b -w -o javascripts -c javascripts/*.coffee")
]
trap "INT" do
Process.kill "INT", *pids
exit 1
end
trap "TERM" do
Process.kill "TERM", *pids
exit 1
end
pids.each do |pid|
Process.waitpid pid
end
end