Skip to content

Instantly share code, notes, and snippets.

@josephj
Created July 8, 2013 02:13
Show Gist options
  • Save josephj/5945774 to your computer and use it in GitHub Desktop.
Save josephj/5945774 to your computer and use it in GitHub Desktop.
# 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[3]}" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment