The Open Source Guides website has a collection of resources for individuals, communities, and companies. These resources help people who want to learn how to run and contribute to open source projects. Contributors and people new to open source alike will find the following guides especially useful:
We use GitHub issues for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new unreported bug, you can submit a bug report.
If you have questions about using itty, contact us on Discord, and we will do our best to answer your questions.
When opening a new issue, always make sure to fill out the issue template. This step is very important! Not doing so may result in your issue not being managed in a timely fashion. Don't take this personally if this happens, and feel free to open a new issue once you've gathered all the information required by the template.
- One issue, one bug: Please report a single bug per issue.
- Provide reproduction steps: List all the steps necessary to reproduce the issue. The person reading your bug report should be able to follow these steps to reproduce your issue with minimal effort.
If you would like to request a new feature or enhancement but are not yet thinking about opening a pull request, you can also file an issue with feature template.
If you're only fixing a bug, it's fine to submit a pull request right away, but we still recommend that you file an issue detailing what you're fixing. This is helpful in case we don't accept that specific fix but want to keep track of the issue.
Small pull requests are much easier to review and more likely to get merged.
- Ensure you have npm installed.
- Ensure you have yarn installed.
- After cloning the repository, run
yarn
in the root of the repository. - To start development, run
yarn dev
.
Fork the repository and create your branch from v4.x
. If you've never sent a GitHub pull request before, you can learn how from this free video series.
A good test plan has the exact commands you ran and their output, provides screenshots or videos if the pull request changes UI.
- If you've changed APIs, update the documentation, including at the appropriate places within itty.dev.
All tests are located in adjacent .spec.ts
files, next to the file being tested.
- To run test, run
yarn test
, oryarn dev
for continuous testing (includes--watch
).
Eslint will catch most styling issues that may exist in your code. You can check the status of your code styling by simply running yarn lint
.
camelCase
for public variable names and methods.- No abbreviated variable names - maximize readability and let the minification process do its thing later.
Please make sure the following is done when submitting a pull request:
- Describe your test plan in your pull request description. Make sure to test your changes.
- Make sure your code lints (
yarn lint
). - Make sure your tests pass (
yarn test
).
All pull requests should be opened against the v4.x
branch. Make sure the PR does only one thing, otherwise please split it.
When adding a new breaking change, follow this template in your pull request:
### New breaking change here
- **Who does this affect**:
- **How to migrate**:
- **Why make this breaking change**:
- **Severity (number of people affected x effort)**:
By contributing to itty, you agree that your contributions will be licensed under its MIT license.
Feel free to ask in #itty-router on Discord if you have questions about our process, how to proceed, etc.