We are open to any contributions made by the community. Here’s how you can help
us while developping on react-include.
Don’t forget to search the issue tracker before opening up an issue.
We use the issue tracker to keep track of bugs and improvements, including the source code, the tests and the documentation. We encourage you to open issues to discuss bugs and improvements before creating a pull request. Other contributors might work on the same subject at the same time which would lead to duplicate work.
If you cannot achieve what you want using react-include, we encourage you to
provide a minimal, complete and verifiable example in the form of a
public repository. Don’t forget to include a package.json file describing your
dependencies.
Once you’ve found a bug or an improvement worth working on and you’ve expressed your interest in working on it, fork then clone the repository.
git clone git@github.com:rednetio/react-include.gitCode style is checked using ESLint and Prettier. General guidelines:
- lines are limited to 80 characters,
- use
camelCasefor identifiers, - use single quotes,
- use yoda conditions wherever you can.
You can use yarn lint or npm run lint to check code style.
We strive for 100% coverage. We use Mocha and Istanbul for
testing and coverage. Additionally, we import Chai’s expect and
Sinon at a global level in tests. Enzyme and JSDOM
are used to test the components.
Use yarn test or npm test to run tests, and yarn coverage or
npm run coverage to see code coverage.
Once your bug fix or improvement is ready, open a pull request against master
and we will review it as soon as possible.
Thank you for contributing!