A basic, pre-configured Node.js app to be used as starting template using for example degit. Includes the following pre-configured:
- Typescript
- Eslint configured for Typescript
- Prettier
- Jest
- Dockerfile with multi-step build
Node version 16, all dependencies latests versions as of March 15th 2022.
-
npm run devStarts dev environment locally withts-node-devand hot reload. -
npm testSingle run of all tests with Jest -
npm run tddRuns test with Jest in watch mode -
npm run lintRuns Eslint -
npm run coverageRuns Jest and outputs coverage info
-
npm run buildCompiles TS tobuildoutput (which is .gitignored) -
npm run startFor production running, executes JS-compiled app inbuild/index.js(needs previousbuildstep)