As the creators and maintainers of this project, we want to ensure that
react-hot-loader
lives and continues to grow and evolve. The evolution of the
library should never be blocked by any single person's time. One of the simplest
ways of doing this is by encouraging a larger set of shallow contributors.
Through this, we hope to mitigate the problems of a project that needs updates
but there's no-one who has the power to do so.
Here is a quick guide to doing code contributions to the library.
-
Find some issue you're interested in, or a feature that you'd like to tackle. Also make sure that no one else is already working on it. We don't want you to be disappointed.
-
Fork, then clone:
git clone https://github.com/YOUR_USERNAME/react-hot-loader.git
-
Create a branch with a meaningful name for the issue:
git checkout -b fix-something
-
Make your changes and commit:
git add
andgit commit
-
Make sure that the tests still pass:
yarn test:es2015 --watch
andyarn test:modern --watch
-
Push your branch:
git push -u origin your-branch-name
-
Submit a pull request to the upstream react-hot-loader repository.
-
Choose a descriptive title and describe your changes briefly.
-
Wait for a maintainer to review your PR, make changes if it's being recommended, and get it merged.
-
Perform a celebratory dance! 💃
-
First make sure you have yarn installed.
-
Run
yarn
and letyarn dev
running in background, you are ready! -
You can also run
yarn test:watch
to run tests in watch mode.
There is a lot of examples in the project, they are all under examples/
folder. Choose an example to test and follow these steps:
- Run
yarn
- Run
yarn install file:../packages/react-hot-loader
- Test it!
Heavily inspired from styled-components contributing guidelines.