This is boilerplate code for creating Typescript projects in a Node environment.
After following the instructions you will have the basic functionality to run a Typescript project with ts-node included to your project folder.
This template repo contains basic debug launch configuration for VS Code using index.ts as entry point. If you don't use VS Code as IDE, remove the folder .vscode. The file tsconfig.json includes basic configuration for the Typescript compiler used by ts-node.
- Clone this repo
- Initialize npm:
npm init -y - Globally install
typescriptandts-node:npm i -g typescript ts-node - Install
typescriptandts-nodeas local dev-dependencies:npm i -D typescript ts-node - Launch the scipt via
ts-node index.ts
Feel free to remove this README.md file after installation!