jasmine-gwt/Guardfile

17 lines
568 B
Plaintext
Raw Permalink Normal View History

2012-01-16 19:58:05 +00:00
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
# Run JS and CoffeeScript files in a typical Rails 3.1/Sprockets fashion.
# Your spec files end with _spec.{js,coffee}.
spec_location = "spec/javascripts/%s_spec"
# uncomment if you use NerdCapsSpec.js
# spec_location = "spec/javascripts/%sSpec"
guard 'jasmine-headless-webkit' do
watch(%r{^(app|lib|vendor)/assets/javascripts/(.*)\.js.coffee$}) { |m| newest_js_file(spec_location % m[1]) }
watch(%r{^spec/javascripts/(.*)[Ss]pec\..*}) { |m| newest_js_file(spec_location % m[1]) }
end