Skip to content

Instantly share code, notes, and snippets.

@nhocki
Created March 5, 2014 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nhocki/9378898 to your computer and use it in GitHub Desktop.
Save nhocki/9378898 to your computer and use it in GitHub Desktop.
desc "compile and run the site"
task :default do
pids = [
spawn("jekyll serve -w"), # put `auto: true` in your _config.yml
spawn("scss --watch css"),
spawn("coffee -b -w -o js -c coffee/*.coffee")
]
trap "INT" do
Process.kill "INT", *pids
exit 1
end
loop do
sleep 1
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment