Skip to content

Instantly share code, notes, and snippets.

@vishwassharma
Created May 21, 2012 07:43
Show Gist options
  • Select an option

  • Save vishwassharma/2761000 to your computer and use it in GitHub Desktop.

Select an option

Save vishwassharma/2761000 to your computer and use it in GitHub Desktop.
GuardFile for development system
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard 'coffeescript', :output => 'public/js' do
watch(%r{public/coffee/(.*)\.coffee})
end
guard 'coffeescript', :output => 'tests/spec/js' do
watch(%r{tests/spec/coffee/(.*)\.coffee})
end
guard 'livereload' do
watch(%r{tests/spec/js/.+\.js})
watch(%r{public/js/.+\.js})
watch(%r{app/views/.+\.(erb|haml|slim)})
watch(%r{app/helpers/.+\.rb})
watch(%r{public/.+\.(css|js|html)})
watch(%r{templates/.+\.(jade)})
watch(%r{config/locales/.+\.yml})
# Rails Assets Pipeline
watch(%r{(app|vendor)/assets/\w+/(.+\.(css|js|html)).*}) { |m| "/assets/#{m[2]}" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment