node-postgres/watch.rb

9 lines
136 B
Ruby

#watch file
watch('lib/(.*)\.js') { |md|
system "node test-units.js"
}
watch('test/(.*)\.js') { |md|
system "node test-units.js"
}