diff --git a/watch.rb b/watch.rb new file mode 100644 index 00000000..935c4ca9 --- /dev/null +++ b/watch.rb @@ -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 "" +}