Thanks for your interest in Limited-Cache! You are very welcome to contribute.
By contributing to Limited-Cache, you agree to abide by the code of conduct.
Before opening an issue, please search the issue tracker to make sure your issue hasn't already been reported.
If you are proposing a new feature, make sure to open an issue to discuss your idea and make sure it is inline with the project goals.
-
Fork this repository to your own GitHub account and clone it to your local device:
git clone https://github.com/your-name/limited-cache.git cd limited-cache git remote add upstream https://github.com/spautz/limited-cache.git -
Install the dependencies and ensure everything runs properly:
yarn install yarn all -
Create a new topic branch:
git checkout -b my-topic-branch -
To test your local dev version of
limited-cachein other projects, Yalc is an excellent tool. -
After you have made your changes, submit a pull request. Issues and pull requests are monitored, and you should receive a reply.
Eslint, Typescript, and Prettier enforce most code standards. A pre-push hook will validate the project against those standards.
Running yarn test will check the code against unit tests and generate a code coverage report (in coverage/).
This project's goal is to be near 100% code coverage.
Running yarn all will check everything: tests, code standards, and the build itself.
Your pull request is more likely to be accepted if this passes for your branch.
In general, the contribution workflow looks like this:
- Open a new issue in the Issue tracker.
- Fork the repo and set up your local development environment.
- Make changes in a branch in your fork.
- Make sure all tests pass and there are no errors.
- Submit a pull request, referencing any issues it addresses.
Please try to keep your pull request focused in scope and avoid including unrelated commits.
After you have submitted your pull request, we'll try to get back to you as soon as possible. We may suggest some changes or improvements.
Thank you for contributing!