Last active
December 10, 2015 21:38
-
-
Save qrush/4496420 to your computer and use it in GitHub Desktop.
Simple Rakefile and Gemfile for using SCSS and CoffeeScript with Jekyll without plugins
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 '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("scss --watch assets:stylesheets"), | |
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