- ts-programming - TypeScript Programming, O'Reilly, Boris Cherny
- type-chain
- time-extension
-
command
# create a new dir mkdir NEW_DIR cd NEW_DIR # initiate NPM Project npm init # set up TSC, TSLint, NodeJS npm install --save-dev typescript tslint @types/node # set up tsc-watch, ts-node npm install --save-dev tsc-watch ts-node
-
script
"scripts": { "start": "tsc-watch --onSuccess \" node dist/\" " },
-
tsconfig.json
{ "compilerOptions": { "lib": ["ES2015"], "module": "commonjs", "outDir": "dist", "sourceMap": true, "strict": true, "target": "es2015" }, "include": ["src"] }