Skip to content

Instantly share code, notes, and snippets.

@xlogerais
Created June 13, 2013 00:10
Show Gist options
  • Select an option

  • Save xlogerais/5770216 to your computer and use it in GitHub Desktop.

Select an option

Save xlogerais/5770216 to your computer and use it in GitHub Desktop.
1/ set rvm env
2/ install bundle
gem install bundler
3/ install tools with bundler
create Gemfile
add gem 'rake'
add gem 'haml'
add gem 'sass'
add gem 'coffee-script'
run bundle
bundle
4/ Create content
vim index.haml
mkdir css
vim css/style.sass
mkdir js
vim js/custom.coffee
5/ Simplify rendering
create rakefile
add source 'https://rubygems.org'
add require 'haml'
add require 'sass'
add require 'coffee-script'
add task build
add task deploy
generate site
rake build
deploy
rake deploy
6/ Automate rendering
add guard
add guard-rake
configure guard
bundle exec guard init
bundle exec guard init rake
launch guard
bundle exec guard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment