First off, thanks for taking the time to help! This guide explains how to get set up, run tests, and work with the bundled template system.
- Fork + clone the repo.
- Install dependencies:
npm install. - Make sure you have Node.js 20+ and Docker if you plan to exercise the CLI manually.
- Use topic branches for each change.
- Keep commits focused; include tests/docs updates when applicable.
- Run
npm test,npm run lint:templates, andnpm run smokebefore submitting a PR.
Templates live under templates/ with metadata in templates/index.json.
- Add/edit files inside
templates/<template-id>/. - Update
templates/index.jsonto describe new templates. - Run
npm testto validate the manifest/selector tests. - Document notable changes in
docs/templates.mdif behavior shifts.
- Add tests in
test/(Nodenode:testrunner). - Avoid hardcoding paths outside the repo; use the template manifest/helpers.
- When changing command-line behavior, update the README and
docs/templates.mdas needed.
- Describe the motivation and testing results in the PR body.
- Reference related issues if applicable.
- Expect at least one reviewer approval before merging.
Participation is governed by our Code of Conduct.