Template Repository for TypeScript & Node.js Application - with strictest possible code quality
pnpm
package manager- TypeScript
- extends
@tsconfig/strictest
- top-level await enabled
- extends
- ESLint
- many plugins & rules from
@typescript-eslint
enabled
- many plugins & rules from
- Prettier
- default setting except for
singleQuote
- default setting except for
- Husky & lint-staged
- automatically type-check & lint & format before commits
- Webpack
- enables top-level await
- creates single self-contained
main.cjs
- free fromnode_modules
- Docker
pnpm dev
- start testing without buildpnpm build
- createsdist/main.cjs
(commonjs)pnpm start
- executesdist/main.cjs
git clone <repository>
pnpm install [--frozen-lockfile]
pnpm build
scp dist/main.mjs your-server:main.js
ssh your-server "node main.js"
git clone <repository>
docker build -t <name> .
docker tag <name> <location/repository:tag>
docker push <location/repository:tag>