twc icon indicating copy to clipboard operation
twc copied to clipboard

Watch option only watches ts file

Open tpluscode opened this issue 8 years ago • 3 comments

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.

tpluscode avatar Aug 02 '17 08:08 tpluscode

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.

Buslowicz avatar Aug 04 '17 13:08 Buslowicz

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?

tpluscode avatar Sep 24 '17 08:09 tpluscode

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?

Buslowicz avatar Sep 24 '17 09:09 Buslowicz