mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
19 lines
275 B
Ruby
19 lines
275 B
Ruby
#watch file
|
|
|
|
def run_parser_tests
|
|
system("node test/parser-tests.js")
|
|
puts ""
|
|
puts("#{Time.now} waiting...")
|
|
puts ""
|
|
end
|
|
|
|
watch('lib/(.*)\.js') { |md|
|
|
puts "lib changed"
|
|
run_parser_tests
|
|
}
|
|
|
|
watch('test/(.*)\.js') { |md|
|
|
puts "test changed"
|
|
run_parser_tests
|
|
}
|