vscode configured to automatically compile typescript under mac

This article addresses:  https://www.cnblogs.com/veinyin/p/11413162.html 

 

 

1. Create a new file // entry index.ts

2. tsc --init // generate tsconfig.json

3. tsc -w // listen for changes in entry file

 

After the first editor index.ts will generate a file index.js

Without changing tsconfig.json configured in the premise of each file is saved after editing index.ts index.js in the current directory will be updated

 

If you want to define other inlet or outlet configuration may be modified custom tsconfig.json

 

 

END~~~≥ω≤ 

 

Guess you like

Origin www.cnblogs.com/veinyin/p/11413162.html