Production-ready TypeScript/Node.js project baseline with linting, formatting, tests, CI, and repository governance templates.
- Install Node.js 22+.
- Install dependencies.
- Run quality checks.
npm ci
npm run lint
npm test
npm run buildUse exported modules from src/ and keep tests in tests/.
Example:
import { sum } from "./src/index.js";
console.log(sum(2, 3));Project structure:
src/: application source codetests/: test suites.github/workflows/: CI definitions.github/ISSUE_TEMPLATE/: issue templates
Common commands:
npm run lint
npm run format
npm test
npm run buildSecurity and dependency checks:
- CI runs
npm audit --audit-level=highon every push/PR.
License: TBD