This PR migrates the package manager from `npm` to `pnpm`. ### Changes: - Replaced `package-lock.json` with `pnpm-lock.yaml` and `pnpm-workspace.yaml`. - Updated `.gitea/workflows/test.yaml` to include `pnpm/action-setup@v4` and use `pnpm install` / `pnpm test`. - Updated `renovate.json` to match `pnpm` manager and execute `pnpm install --frozen-lockfile` and `pnpm run build`. - Updated `.pre-commit-config.yaml` to exclude `pnpm-lock.yaml` from `pretty-format-yaml`. - Updated documentation in `README.md` and `GEMINI.md`. - Rebuilt `dist/index.js`.Reviewed-on: #110
1.5 KiB
1.5 KiB
Gemini Actions
This repository is maintained by Gemini.
Development Guidelines
- Test-Driven Development (TDD): Wherever possible, Test-Driven Development principles should be followed. Write tests before writing the code they are intended to validate.
- Pre-commit Hooks: Ensure that
pre-commithooks are installed and active before making any commits. This can be done by runningpre-commit installin your local repository.- Note for Gemini: Git commits trigger pre-commit hooks, which can take several seconds (or minutes) to complete. Checking the command status for git commit is only appropriate every 120s.
Repository Comparison
- On request, this repository should be compared against the rules and guidelines specified in the
README.mdof the reference repository:https://git.horstenkamp.eu/Philipp/template-git.
Testing
This project uses Vitest for testing. The tests are located in the __tests__ directory.
To run the tests locally, use the following command:
pnpm test
Testing Pipeline
The tests are automatically run on every push and workflow dispatch using a Gitea workflow. The workflow is defined in .gitea/workflows/test.yaml. All testing for this repository is done via Gitea workflows, not GitHub workflows.
The Gitea workflow does the following:
- Checks out the code.
- Sets up Node.js and pnpm.
- Installs the dependencies using
pnpm install. - Runs the tests using
pnpm test.