Thank you for your interest in contributing to Cereb! This document provides guidelines for contributing to the project.
- Node.js 24+
- pnpm 10+
If you use mise, run mise install to set up the correct versions automatically. Otherwise, refer to .mise.toml for the required versions.
git clone https://github.com/user/cereb.git
cd cereb
pnpm install# Run tests
pnpm nx test cereb
# Run linter
pnpm lint
# Fix lint issues
pnpm lint:fix
# Run docs site
pnpm docs- Use the issue templates for bug reports and feature requests
- Search existing issues before creating a new one
- Provide as much detail as possible
- Fork the repository
- Create a feature branch from
maingit checkout -b feat/your-feature
- Make your changes
- Ensure tests pass and lint is clean
- Commit using the commit message format below
- Push and open a Pull Request
{type}({package}): {title}
- Key point 1
- Key point 2
Types: feat, fix, docs, test, refactor, perf, style, chore
Packages: core, pan, pinch, docs
Example:
feat(pan): add velocity threshold option
- Add minVelocity option to filter slow gestures
- Update tests for new option
- Write comments in English only
- Use
*.spec.tsnaming for test files - Place test files alongside source files
- Follow existing code patterns
All PRs require review and approval from the maintainer before merging. Please be patient and responsive to feedback.
By contributing, you agree that your contributions will be licensed under the MIT License.