Make Guard watch also for js.coffee files
This commit is contained in:
parent
c201c510e7
commit
5106439ab2
@ -12,6 +12,7 @@ spec_location = "spec/javascripts/%s_spec"
|
||||
guard 'jasmine-headless-webkit', :notify => false do
|
||||
watch(%r{^app/views/.*\.jst$})
|
||||
watch(%r{^public/javascripts/(.*)\.js$}) { |m| newest_js_file(spec_location % m[1]) }
|
||||
watch(%r{^app/assets/javascripts/(.*)\.js\.coffee$}) { |m| newest_js_file(spec_location % m[1]) }
|
||||
watch(%r{^app/assets/javascripts/(.*)\.(js|coffee)$}) { |m| newest_js_file(spec_location % m[1]) }
|
||||
watch(%r{^spec/javascripts/(.*)_spec\..*}) { |m| newest_js_file(spec_location % m[1]) }
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user