- TypeScript
- Express
- Lint
- Hot ReLoad
- Test
run as develop
npm run dev
This will start typescript file using ts-node. When some file was edited, procces will auto reload (using nodemon).
Server will run at http://localhsot:3000
build
npm run build
Compile typescript files with tsconfig.json and tsconfig.build.json. Test files and folders will be excluded. After build, dist folder will be created.
test
npm run test
Test **/*.test.ts
and ./__test__/**
files using jest.
Example test is here
clean
npm run clean
Remove dist folder using rimraf (for Windows).
TypeScript
- version 3.8.3
- tsconfig
- build config
Express
- express
- @types/express
- main
Lint
- eslint
- eslint-config-prettier
- eslint-plugin-prettier
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- eslintrc.json
- eslintignore
- prettierrc.json
- vscode eslint extention
- vscode editor setting
Hot ReLoad
- nodemon
- ts-node
- nodemon config
Test
- jest
- ts-jest
- jest config