From 5106439ab2f2484aa6d13e334d2f24e7527ec666 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Thu, 13 Sep 2012 13:22:30 +0200 Subject: [PATCH] Make Guard watch also for js.coffee files --- Guardfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Guardfile b/Guardfile index 8a4f730..75c99db 100644 --- a/Guardfile +++ b/Guardfile @@ -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