This are my notes of this TypeScript tutorial https://www.youtube.com/watch?v=BwuLxPH8IDs
- install node js
- install TS via npm:
npm install -g typescript
tsc app.ts
tsc app.ts -w // watchmode for single file
tsc --init
tsc -w
npm init
npm install --save-dev lite-server
npm start
- sourceMap: set to true if you want to debug ts code in browser
- outFile: where to save js code
- rootDir: where the ts code is located
- noEmitOnError: if true and ts code has errors, then no js code is generated