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.ts
file usingtsm
and 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.json
you can set the properties onoutDir
androotDir
- in