2012-02-04 19:08:16 +00:00
|
|
|
# A sample Guardfile
|
|
|
|
# More info at https://github.com/guard/guard#readme
|
|
|
|
|
2012-02-12 12:32:15 +00:00
|
|
|
guard 'jasmine', :server => :none, :jasmine_url => 'http://localhost:3000/jasmine' do
|
2012-02-11 13:06:47 +00:00
|
|
|
watch(%r{app/assets/javascripts/(.+)\.(js\.coffee|js|coffee)$}) { |m| "spec/javascripts/#{m[1]}_spec.#{m[2]}" }
|
|
|
|
watch(%r{spec/javascripts/(.+)_spec\.(js\.coffee|js|coffee)$}) { |m| puts m.inspect; "spec/javascripts/#{m[1]}_spec.#{m[2]}" }
|
|
|
|
watch(%r{spec/javascripts/spec\.(js\.coffee|js|coffee)$}) { "spec/javascripts" }
|
2012-02-04 19:08:16 +00:00
|
|
|
end
|