We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer
If you're interested in contributing a community template, please see our comprehensive Community Template Contributor Guide for detailed instructions.
We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
We use GitHub Flow, so all code changes happen through pull requests
Pull requests are the best way to propose changes to the codebase. We actively welcome your pull requests:
- Fork the repo and create your branch from
main. - Prefix your branch with your GitHub username (eg,
beeman/fix-anchor-issueand notfix/anchor-issue) - If you've added code that should be tested, add tests.
- If you've changed APIs, update the documentation.
- Ensure the test suite passes.
- Make sure your code lints.
- Issue that pull request!
In short, when you submit code changes, your submissions are understood to be under the same MIT License that covers the project.
Report bugs using GitHub's issues
We use GitHub issues to track public bugs. Report a bug by opening a new issue; it's that easy!
Great Bug Reports tend to have:
- A quick summary and/or background
- Steps to reproduce
- Be specific!
- Give sample code if you can.
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
People love thorough bug reports.
- Code is formatted using the prettier configuration in the project root.
- Run
pnpm formatto make sure your code is formatted correctly.
In this section, you'll find the basic commands you need to run for building, testing, and maintaining the quality of the codebase.
To get started with development:
pnpm installTo see all available commands, run:
pnpm runCore Development Commands:
pnpm clean- Clean generated files and artifactspnpm format- Format code using prettierpnpm lint- Lint code for style and quality issuespnpm update-deps- Update all dependencies to latest versions
Ensure your code meets project standards:
pnpm format # Format code
pnpm lint # Check for issuesWe follow the Conventional Commits specification for commit:
fix: a commit of the type fix patches a bug in your codebase (this correlates with PATCH in semantic versioning).feat: a commit of the type feat introduces a new feature to the codebase (this correlates with MINOR in semantic versioning).BREAKING CHANGE: a commit that has the text BREAKING CHANGE: at the beginning of its optional body or footer section introduces a breaking API change (correlating with MAJOR in semantic versioning). A BREAKING CHANGE can be part of commits of any type.- Others: commit types other than fix: and feat: are allowed, for example @commitlint/config-conventional (based on the Angular convention) recommends build:, chore:, ci:, docs:, style:, refactor:, perf:, test:, and others.
By contributing, you agree that your contributions will be licensed under its MIT License.
This document was adapted from the open-source contribution guidelines for Facebook's Draft