Update contribution instructions (#11276)
Dan Abramov committed
Oct 19, 2017 at 01:03 UTC
4af2a24f0054ac321ebb426c24bd9e1e8bdf5266
1 file changed
+8
-6
.github/PULL_REQUEST_TEMPLATE.md
+8
-6
@@ -1,10 +1,12 @@
1
**Before submitting a pull request,** please make sure the following is done:
2
3
1. Fork [the repository](https://github.com/facebook/react) and create your branch from `master`.
4
-2. If you've added code that should be tested, add tests!
5
-3. If you've changed APIs, update the documentation.
6
-4. Ensure the test suite passes (`npm test`).
7
-5. Format your code with [prettier](https://github.com/prettier/prettier) (`npm run prettier`).
8
-6. Make sure your code lints (`npm run lint`).
9
-7. Run the [Flow](https://flowtype.org/) typechecks (`npm run flow`).
4
+2. Run `yarn` in the repository root.
5
+3. If you've fixed a bug or added code that should be tested, add tests!
6
+4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development.
7
+5. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8
+6. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
9
+7. Run the [Flow](https://flowtype.org/) typechecks (`yarn flow`).
10
8. If you haven't already, complete the CLA.
11
+
12
+**Learn more about contributing:** https://reactjs.org/docs/how-to-contribute.html