Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 573 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 573 Bytes

node-ts-boilerplate

Boilerplate for starting node.js and typescript servers already with yarn.

Current Node version targeted, v14+.

Installing

npx degit pedropalhari/node-ts-boilerplate my-project

Commands

  • yarn start: runs the index.ts file using tsm 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 on outDir and rootDir