-
Notifications
You must be signed in to change notification settings - Fork 1
/
Guardfile
20 lines (17 loc) · 848 Bytes
/
Guardfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
# Installed by guard-jasmine-node
# JavaScript/CoffeeScript watchers
#guard 'jasmine-node', :jasmine_node_bin => File.expand_path(File.dirname(__FILE__) + "/node_modules/jasmine-node/bin/jasmine-node") do
# watch(%r{^spec/(.+)_spec\.(js\.coffee|js|coffee)}) { |m| "spec/#{m[1]}_spec.#{m[2]}" }
# watch(%r{^lib/(.+)\.(js\.coffee|js)|coffee}) { |m| "spec/lib/#{m[1]}_spec.#{m[2]}" }
# watch(%r{spec/spec_helper\.(js\.coffee|js|coffee)}) { "spec" }
#end
#
# JavaScript only watchers
#
guard "jasmine-node", :jasmine_node_bin => File.expand_path(File.dirname(__FILE__) + "/node_modules/jasmine-node/bin/jasmine-node") do
watch(%r{^spec/[^\.]+(.+)_spec\.js$})
watch(%r{^lib/(.+)\.js$}) { |m| "spec/lib/#{m[1]}_spec.js" }
watch('spec/spec_helper.js')
end