node-postgres/watch.rb
2010-09-29 01:01:52 -05:00

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
}