Make Guard watch also for js.coffee files

This commit is contained in:
Marcin Kulik 2012-09-13 13:22:30 +02:00
parent c201c510e7
commit 5106439ab2

View File

@ -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