- typescript for better code writting
- jest with typescript for comfortable testing
- nodemon for real time script reload
npm install -g typescript nodemon jest ts-jest esbuild npx concurrently
// or
yarn global add typescript nodemon jest ts-jest esbuild npx concurrently
npm install
// or
yarn
// src/* - developers files
// build/* - production files
// src/common/*.ts - parts shared in script like utils or helpers
// src/common/__test__/*.test.ts - example of test for shared part
// src/task/*.ts - main part of script
// src/data/*.json - hardcoded data dir
// src/typings/index.d.ts - custom shared types
npm run start
// or
yarn start
npm run test
// or
yarn test