Skip to content

Instantly share code, notes, and snippets.

@AntelopeSalad
Last active January 1, 2016 08:19
Show Gist options
  • Save AntelopeSalad/8117576 to your computer and use it in GitHub Desktop.
Save AntelopeSalad/8117576 to your computer and use it in GitHub Desktop.
group :development do
gem "guard", ">= 2.1.0"
gem "guard-livereload"
gem "rack-livereload"
end
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard 'livereload' do
watch(%r{app/views/.+\.(erb|haml|slim)$})
watch(%r{app/helpers/.+\.rb})
watch(%r{public/.+\.(css|js|html)})
watch(%r{config/locales/.+\.yml})
# Rails Assets Pipeline
watch(%r{(app|vendor)/assets/\w+/(.+\.(css|js|html)).*}) { |m| "/assets/#{m[2]}" }
end
# run $ guard init livereload
{
"run_ruby_unit_command": "spring testunit {relative_path}",
"run_single_ruby_unit_command": "spring testunit {relative_path} -n '{test_name}'",
"check_for_rvm": true,
"check_for_bundler": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment