Open tpluscode opened 7 years ago
Thats a bit bigger thing, as it would require to first crawl all the project files to list files to watch, then watch each of them. Also to work correctly it should update files to watch each time something is linked or unlinked. Can be done, but it wont come quick.
And what if as a workaround it was possible to hit ENTER in the console window to force rebuild of all? Is this something any other watcher does?
That would require to write a custom watch script :P. AFAIK this is not done by any watcher. It needs to additionally listen to keystrokes in the console, pretty easy if we handled console interaction ourselves, but we don't do that :P. However twc is pretty fast, wouldn't restarting be fast as well?
When running
twc --watch
elements are regenerated only when the TypeScript files are modified.They should also be regenerated when the files used in
@style
and@template
are modified.