2010-09-30 12:35:14 +08:00
|
|
|
#watch file
|
|
|
|
|
2010-09-30 13:36:11 +08:00
|
|
|
def run_parser_tests
|
|
|
|
system("node test/parser-tests.js")
|
|
|
|
puts ""
|
|
|
|
puts("waiting...")
|
|
|
|
puts ""
|
|
|
|
end
|
|
|
|
|
2010-09-30 12:35:14 +08:00
|
|
|
watch('lib/(.*)\.js') { |md|
|
2010-09-30 13:36:11 +08:00
|
|
|
run_parser_tests
|
2010-09-30 12:35:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
watch('test/(.*)\.js') { |md|
|
2010-09-30 13:36:11 +08:00
|
|
|
run_parser_tests
|
2010-09-30 12:35:14 +08:00
|
|
|
}
|