Skip to content

Instantly share code, notes, and snippets.

@qrush
Last active December 10, 2015 21:38
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save qrush/4496420 to your computer and use it in GitHub Desktop.
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
source 'https://rubygems.org'
gem 'jekyll'
gem 'maruku'
gem 'rake'
gem 'sass'
gem 'coffee-script'
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