Created
May 21, 2012 07:43
-
-
Save vishwassharma/2761000 to your computer and use it in GitHub Desktop.
GuardFile for development system
This file contains hidden or 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
| # 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