|
| 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_ |
| 6 | +series [How to Contribute to an Open Source Project on GitHub][egghead] |
| 7 | + |
| 8 | +## Project setup |
| 9 | + |
| 10 | +1. Fork and clone the repo |
| 11 | +2. Run `npm ci` to install dependencies |
| 12 | +3. Create a branch for your PR with `git checkout -b feature/your-branch-name` |
| 13 | + |
| 14 | +> Tip: Keep your `master` branch pointing at the original repository and make |
| 15 | +> pull requests from branches on your fork. To do this, run: |
| 16 | +> |
| 17 | +> ``` |
| 18 | +> git remote add upstream [email protected]:smeijer/testing-playground.git |
| 19 | +> git fetch upstream |
| 20 | +> git branch --set-upstream-to=upstream/master master |
| 21 | +> ``` |
| 22 | +> |
| 23 | +> This will add the original repository as a "remote" called "upstream," Then |
| 24 | +> fetch the git information from that remote, then set your local `master` |
| 25 | +> branch to use the upstream master branch whenever you run `git pull`. Then you |
| 26 | +> can make all of your pull request branches based on this `master` branch. |
| 27 | +> Whenever you want to update your version of `master`, do a regular `git pull`. |
| 28 | +
|
| 29 | +## Committing and Pushing changes |
| 30 | +
|
| 31 | +Please make sure to run the tests before you commit your changes. You can run |
| 32 | +`npm run test` to do so. |
| 33 | +
|
| 34 | +### Linting with git hooks |
| 35 | +
|
| 36 | +There are git hooks set up with this project that are automatically installed |
| 37 | +when you install dependencies. They're really handy, and will take care of linting |
| 38 | +and formatting for you. |
| 39 | +
|
| 40 | +## Help needed |
| 41 | +
|
| 42 | +Please checkout the [the open issues][issues] |
| 43 | +
|
| 44 | +Also, please watch the repo and respond to questions/bug reports/feature |
| 45 | +requests! Thanks! |
| 46 | +
|
| 47 | +[egghead]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github |
| 48 | +[issues]: https://github.com/smeijer/testing-playground/issues |
0 commit comments