prerequisite & Environment set-up
Editor+TS compiler
- Editor – VS code
- TS Compiler – CLI (node npm)
npm install -g typescript
Code to compile
At root of project structure : tsc [hit-Enter]
Environment setup: Not required
Trade secret: [not compulsory but time saving] You can install the utility by npm to automatically reload the page on change.
Command:
npm install -g lite-server [recommended]
or
npm install -g live-server
//it install a small code in each js file and as soon as it detects the change in js file, it refreshes the browser
To run: In terminal type: lite-server[Enter]