node-postgres/watch.rb
2010-09-29 23:35:14 -05:00

13 lines
172 B
Ruby

#watch file
watch('lib/(.*)\.js') { |md|
system('echo "lib changed"')
}
watch('test/(.*)\.js') { |md|
system("node #{md}")
puts ""
puts("waiting...")
puts ""
}