-
Notifications
You must be signed in to change notification settings - Fork 0
Contributing
How to build the repo locally, keep packages layered correctly, and ship changes that pass CI.
| Tool | Version |
|---|---|
| Node.js | >= 22 |
| pnpm | current |
| Git | recent |
git clone https://github.com/0xTanzim/nextRush.git
cd nextRush
pnpm install
pnpm build
pnpm testpnpm install
pnpm build
pnpm test
pnpm typecheck
pnpm lint
pnpm clean
pnpm --filter @nextrush/core build
pnpm --filter @nextrush/core test
pnpm --filter @nextrush/core test -- --coveragenextRush/
├── packages/ types, errors, core, router, di, decorators, adapters, middleware, plugins, …
├── apps/docs documentation site
├── apps/benchmark
└── apps/playground
types → errors → core → router → di → decorators → controllers
Nothing below may import from anything above. No cycles. Cross-package boundaries use import type when only types cross.
- TypeScript strict; no
any. - Barrel exports (
src/index.ts) per package. - Tests under
src/__tests__/with Vitest; coverage targets apply in CI. - No runtime deps in foundation packages except approved exceptions (
reflect-metadata,tsyringein@nextrush/di,@clack/promptsincreate-nextrush). - No platform globals (
process,Deno,Bun) inside@nextrush/core.
Naming: camelCase functions/vars, PascalCase types/classes, kebab-case.ts files.
pnpm test
pnpm --filter @nextrush/core test -- --watchBug fixes include regression coverage; new public APIs get usage tests.
- Fork and branch (
feat/…,fix/…). - Implement with tests.
- Run
pnpm build && pnpm typecheck && pnpm lint && pnpm test. - Open a PR toward
main.
type(scope): description
Examples: feat(core): …, fix(router): …, docs(errors): …
Types: feat, fix, test, docs, refactor, perf, chore.
See Architecture for LOC targets per package.
Public API changes ship with docs updates (wiki + apps/docs as appropriate). Examples must compile against current exports.
Report bugs with reproduction steps, Node version, and runtime (Node / Bun / Deno): Issues.
Contributions fall under the MIT License.
NextRush · MIT License · Docs · Issues