|
1 |
| -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). |
| 1 | +# git-co-commit |
2 | 2 |
|
3 |
| -## Available Scripts |
| 3 | +When a pair or multiple developers work on git projects, there is a convention that allows us to document our co-authors in the commit message. However, adding the co-authorship information on every single commit is painful. <br><br> |
| 4 | +Install git-co-commit package to use just a single commit to add all the team members that worked in the project as co-authors. <br><br> |
| 5 | +Each co-author will be added to the commit message, so that they are also credited in the github contributions view! |
4 | 6 |
|
5 |
| -In the project directory, you can run: |
| 7 | +### Before pairing |
6 | 8 |
|
7 |
| -### `yarn start` |
| 9 | + |
8 | 10 |
|
9 |
| -Runs the app in the development mode.<br /> |
10 |
| -Open [http://localhost:3000](http://localhost:3000) to view it in the browser. |
| 11 | +### After pairing |
11 | 12 |
|
12 |
| -The page will reload if you make edits.<br /> |
13 |
| -You will also see any lint errors in the console. |
| 13 | + |
14 | 14 |
|
15 |
| -### `yarn test` |
| 15 | +<br> |
16 | 16 |
|
17 |
| -Launches the test runner in the interactive watch mode.<br /> |
18 |
| -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. |
| 17 | +## Install it globally, |
19 | 18 |
|
20 |
| -### `yarn build` |
| 19 | +```bash |
| 20 | +npm i -g git-co-commit |
| 21 | +``` |
21 | 22 |
|
22 |
| -Builds the app for production to the `build` folder.<br /> |
23 |
| -It correctly bundles React in production mode and optimizes the build for the best performance. |
| 23 | +#### Use it globally, |
24 | 24 |
|
25 |
| -The build is minified and the filenames include the hashes.<br /> |
26 |
| -Your app is ready to be deployed! |
| 25 | +```bash |
| 26 | +commit |
| 27 | +``` |
27 | 28 |
|
28 |
| -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. |
| 29 | +## Install it locally, |
29 | 30 |
|
30 |
| -### `yarn eject` |
| 31 | +```bash |
| 32 | +npm i git-co-commit |
| 33 | +``` |
31 | 34 |
|
32 |
| -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** |
| 35 | +#### For using it locally, specify following in scripts of package.json |
33 | 36 |
|
34 |
| -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. |
| 37 | +```js |
| 38 | +"commit": "commit" |
| 39 | +``` |
35 | 40 |
|
36 |
| -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. |
| 41 | +#### For running it |
37 | 42 |
|
38 |
| -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. |
39 |
| - |
40 |
| -## Learn More |
41 |
| - |
42 |
| -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). |
43 |
| - |
44 |
| -To learn React, check out the [React documentation](https://reactjs.org/). |
45 |
| - |
46 |
| -### Code Splitting |
47 |
| - |
48 |
| -This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting |
49 |
| - |
50 |
| -### Analyzing the Bundle Size |
51 |
| - |
52 |
| -This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size |
53 |
| - |
54 |
| -### Making a Progressive Web App |
55 |
| - |
56 |
| -This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app |
57 |
| - |
58 |
| -### Advanced Configuration |
59 |
| - |
60 |
| -This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration |
61 |
| - |
62 |
| -### Deployment |
63 |
| - |
64 |
| -This section has moved here: https://facebook.github.io/create-react-app/docs/deployment |
65 |
| - |
66 |
| -### `yarn build` fails to minify |
67 |
| - |
68 |
| -This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify |
| 43 | +```bash |
| 44 | +npm run commit |
| 45 | +``` |
0 commit comments