Setup
Guide to setup typescript development environment
Prerequisite
Install Node.js
Install
Install typescript via npm: npm install typescript --save-dev
Configure Project
Use tsc --init to create a default 'tsconfig.json' or use below template
Use tsc --watch to watch and compile .ts files to .json files
Use Visual Studio Code
Install eslint plugin in Visual Studio Code and eslint module via npm: npm install eslint
Configure the eslint
Create launch configure
Open menu Run -> Add Configureation then select Node.js

Editing launch.json. Notice the entrypoint is dist/index.js
Last updated