node-postgres/watch.rb
2010-09-30 00:36:11 -05:00

17 lines
220 B
Ruby

#watch file
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
}