updated watch file
This commit is contained in:
parent
7a5ea00995
commit
d852f7f1c4
16
watch.rb
16
watch.rb
@ -1,12 +1,16 @@
|
|||||||
#watch file
|
#watch file
|
||||||
|
|
||||||
watch('lib/(.*)\.js') { |md|
|
def run_parser_tests
|
||||||
system('echo "lib changed"')
|
system("node test/parser-tests.js")
|
||||||
}
|
|
||||||
|
|
||||||
watch('test/(.*)\.js') { |md|
|
|
||||||
system("node #{md}")
|
|
||||||
puts ""
|
puts ""
|
||||||
puts("waiting...")
|
puts("waiting...")
|
||||||
puts ""
|
puts ""
|
||||||
|
end
|
||||||
|
|
||||||
|
watch('lib/(.*)\.js') { |md|
|
||||||
|
run_parser_tests
|
||||||
|
}
|
||||||
|
|
||||||
|
watch('test/(.*)\.js') { |md|
|
||||||
|
run_parser_tests
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user