Watchers
watch()
.paths( '**.cfc' )
.excludePaths( '/config/Coldbox.cfc,/config/WireBox.cfc' )
.inDirectory( getCWD() )
.withDelay( 5000 )
.onChange( function() {
print.line( 'Something changed!' );
command( 'testbox run' )
.run();
} )
.start();onChange() Closure
Was this helpful?