Typescript (1)


New Node – Typescript project checklist

Assuming Node, npm, nvm are all installed and updated. 1) npm init -y : Create the package.json file. 2) npm install typescript –save-dev : Install the typescript compiler 3) npx tsc –init: create tsconfig.json file Now we want to automate our *.ts transpilation into javascript. 4) npm install ts-node –save-dev : In package.json, under scripts: […]