-
-
Save ebiansyah1402/5757884 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'jekyll' | |
gem 'maruku' | |
gem 'rake' | |
gem 'sass' | |
gem 'compass' | |
gem 'coffee-script' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "compile and run the site" | |
task :default do | |
pids = [ | |
spawn("jekyll"), # put `auto: true` in your _config.yml | |
spawn("compass watch"), # asuming we initiate compass on root folder | |
spawn("coffee -b -w -o javascripts -c assets/*.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