Created
April 1, 2015 08:11
-
-
Save oojikoo-gist/b9acc5e02762fc780e47 to your computer and use it in GitHub Desktop.
rails: guard watch list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
guard 'rails', :host => "127.0.0.1", :port => '35728' do | |
watch('Gemfile.lock') | |
# Rails | |
watch(%r{app/controllers/.+\.(rb)$}) | |
watch(%r{app/helpers/.+\.rb}) | |
watch(%r{app/mailers/.+\.(rb)$}) | |
watch(%r{app/models/.+\.(rb)$}) | |
watch(%r{app/serializers/.+\.(rb)$}) | |
watch(%r{app/uploaders/.+\.rb}) | |
watch(%r{app/views/.+\.(erb|haml|slim)$}) | |
watch(%r{public/.+\.(css|js|html)}) | |
watch(%r{config/initializers/.+\.yml}) | |
watch(%r{config/locales/.+\.yml}) | |
watch(%r{^lib/(.+)\.rb}) | |
# Asset Pipeline | |
watch(%r{app/assets/.+\.(js|coffee|css|scss|sass|less|jpg|jpeg|gif|png)$}) | |
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