Boilerplate for starting node.js and typescript servers already with yarn.
Current Node version targeted, v14+.
npx degit pedropalhari/node-ts-boilerplate my-project
yarn start: runs theindex.tsfile usingtsmand source maps from Node (using--enable-source-maps)yarn dev: starts the typescript compiler on watch mode and without emitting any JS files (tsc -w --noEmit)yarn build:js: builds the code, incrementally- in
tsconfig.jsonyou can set the properties onoutDirandrootDir
- in