1.0.1 • Published 2 years ago

tsc-cmd v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

tsc-cmd

中文

A terminal that monitors TypeScript files, and compiles automatically when it changes.

//To install
npm install tsc-cmd -g

//To use
tsc-cmd -w ../some_Dir/some_file.ts

why?

With typescript command-line tools, you can only run TS files, but can't return results in real time after a TS file has been modified. So I made this little plugin.

To prepare

You need to install TypeScript globally because my plugin also uses TypeScript to compile TS files.

npm install typescript -g

How to use

tsc-cmd -w ../some_Dir/some_file.ts

ps. When you run this command.

A js file with the same name will be compiled in the same directory as the files you monitor.

License

MIT

Copyright (c) 2022-present, zgj233