A basic seed project for building application with NodeJS, Typescript, Jest and ESLint.
- Typescript installed as a dev dependency and configured with sensible defaults.
- Eslint with Typescript and Prettier plugins with recommended defaults.
- Your code goes inside the
srcfolder. - Jest for testing.
npm run dev
Uses nodemon and ts-node for fast development cycle.
npm dev:inspect
Same as above but with --inspect-brk flag so you can debug using Chrome DevTools.
For more information please read this https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27.
-
npm installdependencies. -
npm run devornpm run dev:inspectto start developing. -
npm testornpm run test:watchfor testing. -
npm run lintfor linting.
-
npm buildwill transpile the application and save in the./buildfolder (sourcemaps included). -
npm startto run the build.
MIT.