feature/<short-description>— new featuresfix/<short-description>— bug fixesrefactor/<short-description>— refactors (no behavior change)docs/<short-description>— documentation only
Examples: feature/checkout-retry, fix/cart-total, docs/api-readme.
- Prefer clear, present-tense messages: "Add checkout retry" rather than "Added checkout retry".
- Reference issue/ticket when relevant: "Fix cart total (PROJ-123)".
Conventional commits (feat:, fix:, etc.) are optional but welcome.
-
Lint
npm run lint
Fix any reported issues.
-
Build
npm run build
Ensure the production build succeeds.
-
Format The project uses Prettier (see
package.json→prettier). Keep formatting consistent; if you have format-on-save or a Prettier script, run it before pushing.
- Use path aliases:
@api,@app-types/dto,@core/*,@auth-module/*, etc. (seetsconfig.json→paths). - API calls go through
ApiClientandEndpoints; types for requests/responses from@app-types/dto. - New shared types that represent API contracts belong in
src/app/types/dto/and should be re-exported from the appropriate*.dto.tsandindex.ts.
- Create a branch from the default branch (e.g.
main). - Make changes and ensure lint + build pass.
- Open a PR with a short description of what changed and why.
- Address review comments; once approved, the PR can be merged.