This guide is for developers contributing to this repository.
- Use Node.js 22.22.1.
- Install dependencies:
npm install- For runtime checks, prepare
.envas described in quick-start.md.
Run the CLI locally:
npm run devUse your local input directory and Algolia credentials through environment variables.
- Build:
npm run build- Lint:
npm run lint- Lint with autofix:
npm run lint:fix- Unit tests:
npm test- Add or update tests for every behavior change.
- Keep tests deterministic and isolated.
- Run
npm testbefore pushing. - Pre-push hook also runs tests. Do not bypass failures.
- Follow commit and branch rules in git-workflow.md.
- Follow the pull request structure in .github/PULL_REQUEST_TEMPLATE.md.
- Update related documentation when behavior or usage changes.
- Project structure and ownership: repository-map.md
- Release process (maintainers): publishing.md
- End-user execution steps: quick-start.md