updated watch file to use node test script
This commit is contained in:
parent
23d3271aab
commit
c511997c4d
9
watch.rb
9
watch.rb
@ -1,13 +1,8 @@
|
||||
#watch file
|
||||
def run_test_file(f)
|
||||
puts "running #{f}"
|
||||
system "node #{f}"
|
||||
puts "done"
|
||||
end
|
||||
watch('lib/(.*)\.js') { |md|
|
||||
puts Dir["test/*.js"].each { |f| run_test_file(f) }
|
||||
system "node test-units.js"
|
||||
}
|
||||
|
||||
watch('test/(.*)\.js') { |md|
|
||||
run_test_file(md)
|
||||
system "node test-units.js"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user