|
| 1 | +# Contributing |
| 2 | + |
| 3 | +Thanks for being willing to contribute! |
| 4 | + |
| 5 | +**Working on your first Pull Request?** You can learn how from this *free* series |
| 6 | +[How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github) |
| 7 | + |
| 8 | +## Project setup |
| 9 | + |
| 10 | +1. Fork and clone the repo |
| 11 | +2. `$ yarn install` to install dependencies |
| 12 | +3. `$ yarn test` to validate you've got it working |
| 13 | +4. Create a branch for your PR |
| 14 | + |
| 15 | +## Making changes |
| 16 | + |
| 17 | + - All changes should have unit tests |
| 18 | + - Any relevant documentation should be updated |
| 19 | + - No linting warnings/errors should be introduced |
| 20 | + |
| 21 | +## Committing and Pushing changes |
| 22 | + |
| 23 | +Once you are ready to commit the changes, please use the below commands |
| 24 | + |
| 25 | +1. `git add <files to be comitted>` |
| 26 | +2. `git commit -m 'A meaningful message` |
| 27 | + |
| 28 | +*Note: please use present tense in commit messages i.e. `Add feature X` and not ~`Added feature X`~* |
| 29 | + |
| 30 | +## Add yourself as a contributor |
| 31 | + |
| 32 | +This project follows the [all contributors](https://github.com/kentcdodds/all-contributors) |
| 33 | +specification. To add yourself to the table of contributors on the README.md, please use |
| 34 | +the automated script as part of your PR: |
| 35 | + |
| 36 | +```console |
| 37 | +yarn contributor <YOUR_GITHUB_USERNAME> |
| 38 | +``` |
| 39 | + |
| 40 | +Follow the prompt. If you've already added yourself to the list and are making a |
| 41 | +new type of contribution, you can run it again and select the added contribution |
| 42 | +type. If you need to edit the `.all-contributorsrc` file by hand that's fine |
| 43 | +too, just run `yarn contributor:generate` to regenerate the table |
| 44 | + |
| 45 | +## Help needed |
| 46 | + |
| 47 | +Please checkout the [ROADMAP](docs/ROADMAP.md) and raise an issue to discuss |
| 48 | +any of the items |
0 commit comments