Thanks for the interest in contributing to Muuri-react! Here you will find some instructions on how to create an issue or a pull request.
Muuri-react is based on the Muuri layout engine which is used internally. If your issue is related to the layout, sorting or any other feature of Muuri please open the issue in the Muuri repository.
You should check out the existing questions and see if your question has been asked/answered already. If not, you can create a new issue and explain the problem you're facing.
Improvement ideas are always welcome! Please check first the existing ideas and enhancements so that you won't be creating a duplicate issue.
Please create an issue and explain the bug in detail. If possible create a reduced test case and share a link to it. You can, for example, fork this Codesandbox example and modify it to demonstrate the bug.
- Discuss first.
- The first step should always be creating a new issue and discussing your pull request suggestion with the authors and the community.
- After you get green light it's time to get coding.
- Fork the repo and create a new branch for your pull request.
- Fork Muuri-react.
- Create a new branch for your pull request from the master branch. The name of the pull request branch should start with the id of the issue you opened for the pull request (e.g.
#123-fix-something
).
- Setup the development environment.
- Run
npm install
in the repository's directory. - You can now run the following commands:
npm run build
- Builds
build/index.js
fromsrc
directory.
- Builds
npm run eslint
- Lints all files in
src
,test
andexamples
directories with ESLint.
- Lints all files in
npm run prettier
- Formats all files in
src
,test
andexamples
directories with Prettier.
- Formats all files in
npm run test
- Runs unit tests for
src
.
- Runs unit tests for
- Run
- Do the updates in
src
folder.- Now is the time to make the actual updates to Muuri.
- Remember scope. Don't refactor things that are not related to the pull request.
- After you're done update tests and docs (
README.md
) if necessary.
- Format, build and test changes.
- Run
npm run format
,npm run build
and finallynpm run test
.
- Run
- Create the pull request.
- Do your best to explain what the pull request fixes.
- Mention which issue(s) will be closed by the pull request, e.g.
Closes #123
. - After your pull request is accepted it will be merged to the dev branch and released with the next release. If you did only some minor change in the documentation it may be merged directly to the master branch.
- You made it! Thank you so much for contributing to Muuri-react!