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('lib/(.*)\.js') { |md|
|
||||
system('echo "lib changed"')
|
||||
}
|
||||
|
||||
watch('test/(.*)\.js') { |md|
|
||||
system("node #{md}")
|
||||
def run_parser_tests
|
||||
system("node test/parser-tests.js")
|
||||
puts ""
|
||||
puts("waiting...")
|
||||
puts ""
|
||||
end
|
||||
|
||||
watch('lib/(.*)\.js') { |md|
|
||||
run_parser_tests
|
||||
}
|
||||
|
||||
watch('test/(.*)\.js') { |md|
|
||||
run_parser_tests
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user