13 lines
172 B
Ruby
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 ""
|
||
|
}
|