|
1 | 1 | [](https://github.com/kaiosilveira/replace-constructor-with-factory-function-refactoring/actions/workflows/ci.yml)
|
2 | 2 |
|
3 |
| -# Refactoring catalog repository template |
4 |
| - |
5 |
| -This is a quick template to help me get a new refactoring repo going. |
6 |
| - |
7 |
| -## Things to do after creating a repo off of this template |
8 |
| - |
9 |
| -1. Run `GITHUB_TOKEN=$(gh auth token) yarn tools:cli prepare-repository -r <repo_name>`. It will: |
10 |
| - |
11 |
| -- Update the `README.md` file with the actual repository name, CI badge, and commit history link |
12 |
| -- Update `package.json` with the repository's name and remote URL |
13 |
| -- Update the repo's homepage on GitHub with: |
14 |
| - - A description |
15 |
| - - A website link to https://github.com/kaiosilveira/refactoring |
16 |
| - - The following labels: javascript, refactoring, replace-constructor-with-factory-function-refactoring |
17 |
| - |
18 |
| -2. Replace the lorem ipsum text sections below with actual text |
19 |
| - |
20 | 3 | ## Useful commands
|
21 | 4 |
|
22 | 5 | - Generate markdown containing a diff with patch information based on a range of commits:
|
23 | 6 |
|
24 | 7 | ```bash
|
25 |
| -yarn tools:cli generate-diff -f <first_commit_sha> -l <last_commit_sha> |
| 8 | +yarn tools:cli generate-diff -f 6f90103 -l HEAD |
26 | 9 | ```
|
27 | 10 |
|
28 | 11 | - To generate the commit history table for the last section, including the correct links:
|
@@ -119,10 +102,10 @@ And that's it!
|
119 | 102 |
|
120 | 103 | Below there's the commit history for the steps detailed above.
|
121 | 104 |
|
122 |
| -| Commit SHA | Message | |
123 |
| -| --------------------------------------------------------------------------- | ------------------------ | |
| 105 | +| Commit SHA | Message | |
| 106 | +| --------------------------------------------------------------------------------------------------------------- | ------------------------ | |
124 | 107 | | [cmt-sha-1](https://github.com/kaiosilveira/replace-constructor-with-factory-function-refactoring/commit-SHA-1) | description of commit #1 |
|
125 | 108 | | [cmt-sha-2](https://github.com/kaiosilveira/replace-constructor-with-factory-function-refactoring/commit-SHA-2) | description of commit #2 |
|
126 | 109 | | [cmt-sha-n](https://github.com/kaiosilveira/replace-constructor-with-factory-function-refactoring/commit-SHA-n) | description of commit #n |
|
127 | 110 |
|
128 |
| -For the full commit history for this project, check the [Commit History tab](https://github.com/kaiosilveira/replace-constructor-with-factory-function-refactoring/commits/main). |
| 111 | +For the full commit history for this project, check the [Commit History tab](https://github.com/kaiosilveira/replace-constructor-with-factory-function-refactoring/commits/main). |
0 commit comments