A simple base structure for a Typescript Node project.
Setup:
- configure dependency versions in
package.json
- install (
npm
/yarn
) and commit the lock file - update
tsconfig
and/oreslint
rules (no-console
is included as an example)
Running:
.vscode/launch.json
configuration allows debugging usingts-node
.
Scripts:
build
- compiles files into thebuild
folderclean
- removesbuild
folderstart
- runs the app from thebuild
folder