Skip to content

Instantly share code, notes, and snippets.

@rands0n
Forked from xavez/Gemfile
Last active August 29, 2015 14:07
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 rands0n/da2b431439b48b82ef63 to your computer and use it in GitHub Desktop.
Save rands0n/da2b431439b48b82ef63 to your computer and use it in GitHub Desktop.
destination: ./public
exclude: ['scss','Gem*','Guard*','*.rb','.sass-cache','.git']
# ~/Gemfile
source "http://rubygems.org"
group :development do
# CSS Preprocessing
gem 'sass'
gem 'compass'
gem 'jekyll'
# Guard Specific
gem 'guard'
gem 'guard-compass' # Compile on sass/scss change.
gem 'guard-jekyll' # Jekyll.
gem 'guard-jekyll-plus' # Jekyll Plus.
gem 'guard-livereload' # Browser reload.
gem 'yajl-ruby' # Faster JSON with LiveReload in the browser.
end
# ~/.GuardFile
notification :off
# Sass/Compass https://github.com/guard/guard-compass
if File.exists?("./config.rb")
guard :compass do
watch(%r{(.*)\.s[ac]ss$})
end
end
# Jekyll
guard 'jekyll-plus', :config => ['_config.yml'] do
watch /.*/
ignore /public/
end
# LiveReload https://github.com/guard/guard-livereload
require 'find'
if Find.find(Dir.pwd).detect{|dir|dir=~/.+\.(css|html|js)$/}
guard 'livereload', :grace_period => 0.5 do
watch(%r{.+\.(css|html|js)$})
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment