1.

Is It Possible To Compile .ts Automatically With Real Time Changes In .ts File?

Answer»

Yes. Using --watch compiler option, this can be achieved.

tsc --watch file1.ts

This will first compile file1.ts in FILE.js and watch for the file CHANGES. As SOON as there is any change detected, it will compile it again. But you NEED to ensure that command prompt must not be CLOSED, used with --watchoption.

Yes. Using --watch compiler option, this can be achieved.

tsc --watch file1.ts

This will first compile file1.ts in file.js and watch for the file changes. As soon as there is any change detected, it will compile it again. But you need to ensure that command prompt must not be closed, used with --watchoption.



Discussion

No Comment Found