Thank you for considering contributing to this package! This small guide will help you get started.
- Make a fork of this repository
- Navigate to your forked repository and copy the SSH url. Clone your fork locally:
$ git clone git@github.com:{ YOUR_USERNAME }/rtk-query-loader.git
$ cd rtk-query-loader
- Once cloned, you will see
origin
as your default remote, pointing to your personal forked repository. Add a remote named upstream pointing to the main rtk-query-loader:
$ git remote add upstream git@github.com:ryfylke-react-as/rtk-query-loader.git
$ git remote -v
- First, make sure you have the latest changes:
$ git pull upstream main
- Create a new feature branch for your changes:
$ git checkout -b { YOUR_BRANCH_NAME } main
For now, try to following existing patterns. Formalized code-guidelines will come at some point.
If you have any questions, feel free to open up an issue!
- In the
testing-app
directory, install the project dependencies, and then run the tests:
$ yarn install
$ yarn run test
- If you are adding a new feature, make sure to write a new test for your change in
testing-app/tests.test.tsx
and rerun.
If all the tests pass, you can commit your final changes and push!
$ git commit -a -m "feat: withLoader now has a new argument, ..."
$ git push origin { YOUR_BRANCH_NAME }
We prefer it if you try to stick to conventional commit messages.
- On Github, navigate to @ryfylke-react/rtk-query-loader and click the button that reads "Compare & pull request".
- Write a title and description, and submit your pull request.
Your code will be reviewed and if everything looks good you'll be added to the list of contributors.
Any contribution is appreciated 🤘