node-postgres/watch.rb

13 lines
172 B
Ruby
Raw Normal View History

2010-09-30 12:35:14 +08:00
#watch file
watch('lib/(.*)\.js') { |md|
system('echo "lib changed"')
}
watch('test/(.*)\.js') { |md|
system("node #{md}")
puts ""
puts("waiting...")
puts ""
}