added watch file

This commit is contained in:
brianc 2010-09-29 23:35:14 -05:00
parent 19099919f7
commit 4c27a3b974

12
watch.rb Normal file
View File

@ -0,0 +1,12 @@
#watch file
watch('lib/(.*)\.js') { |md|
system('echo "lib changed"')
}
watch('test/(.*)\.js') { |md|
system("node #{md}")
puts ""
puts("waiting...")
puts ""
}