PoC of Node.js running mixed TypeScript code.
- Development
- Production
- Build
- Test
- Start server
npm run dev
- Go to endpoints
http://localhost:8080/
http://localhost:8080/js
http://localhost:8080/broken-link
- Edit code with hot restart
To switch from SWC to TSC-transpiler removed the following line in tsconfig.json:
"transpiler": "ts-node/transpilers/swc-experimental"
- Testing in Github Actions
- Testing Typescript code using SWC Jest
- Code Coverage using Jest
- Standardized and Linting the code using ESLint
- Format code using Prettier
- Automate Github hooks using Husky and Lint Staged
- Typescript
- Node.js
- Jest
- ESLint
- Prettier
- Husky
- SWC
- Lint Staged
with NPX
npx degit lamualfa/template-node project-name