Skip to content

Commit 22db2b3

Browse files
committed
add docs
1 parent b15df82 commit 22db2b3

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

README.md

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
11
[![Continuous Integration](https://github.com/kaiosilveira/replace-constructor-with-factory-function-refactoring/actions/workflows/ci.yml/badge.svg)](https://github.com/kaiosilveira/replace-constructor-with-factory-function-refactoring/actions/workflows/ci.yml)
22

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-
203
## Useful commands
214

225
- Generate markdown containing a diff with patch information based on a range of commits:
236

247
```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
269
```
2710

2811
- To generate the commit history table for the last section, including the correct links:
@@ -119,10 +102,10 @@ And that's it!
119102

120103
Below there's the commit history for the steps detailed above.
121104

122-
| Commit SHA | Message |
123-
| --------------------------------------------------------------------------- | ------------------------ |
105+
| Commit SHA | Message |
106+
| --------------------------------------------------------------------------------------------------------------- | ------------------------ |
124107
| [cmt-sha-1](https://github.com/kaiosilveira/replace-constructor-with-factory-function-refactoring/commit-SHA-1) | description of commit #1 |
125108
| [cmt-sha-2](https://github.com/kaiosilveira/replace-constructor-with-factory-function-refactoring/commit-SHA-2) | description of commit #2 |
126109
| [cmt-sha-n](https://github.com/kaiosilveira/replace-constructor-with-factory-function-refactoring/commit-SHA-n) | description of commit #n |
127110

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

Comments
 (0)