Contributing
How to contribute
Thank you for your interest in contributing to Netlytics! We welcome contributions from the community.
Getting Started
- Fork the repository on GitHub
- Clone your fork locally:
git clone https://github.com/your-username/netlytics.git cd netlytics - Install dependencies:
bun install - Create a branch for your changes:
git checkout -b feature/your-feature-name
Development
Running Tests
bun test
Building
bun run build
Linting
bun run lint
bun run lint:fix # Auto-fix issues
Code Style
We use Biome for formatting and linting. The configuration is in biome.json.
Making Changes
Before You Start
- Check existing issues to see if your idea is already being discussed
- For major changes, open an issue first to discuss the approach
Code Changes
- Make your changes in the
src/directory - Add tests in the
tests/directory - Ensure all tests pass:
bun test - Run linting:
bun run lint - Build to verify:
bun run build
Adding a Changeset
For any user-facing changes, create a changeset:
bun run changeset
Select the appropriate version bump (major/minor/patch) and describe your changes.
Pull Request Process
- Update tests โ Ensure your changes are covered by tests
- Update documentation โ Update README.md if needed
- Add changeset โ Run
bun run changesetfor user-facing changes - Commit your changes:
git add . git commit -m "feat: your feature description" - Push to your fork:
git push origin feature/your-feature-name - Open a Pull Request on GitHub
PR Guidelines
- Write clear commit messages
- Keep PRs focused on a single feature or fix
- Reference related issues in your PR description
- Ensure CI checks pass
Code of Conduct
- Be respectful and inclusive
- Welcome newcomers and help them learn
- Focus on constructive feedback
Questions?
Feel free to open an issue for questions or discussions about contributions.
Thank you for contributing to Netlytics! ๐