Skip to content

Commit 7b8103b

Browse files
committed
📝 docs(readme.md): updated documents
committing all changes
1 parent 60501b1 commit 7b8103b

File tree

3 files changed

+132
-41
lines changed

3 files changed

+132
-41
lines changed

README.md

Lines changed: 95 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,25 @@
22

33
## How to use
44

5-
NOTE: It is best to have created a github organization to use this template. There are a few features which require it. Namely publishing of typedocs to github_pages and the dependabot security features for organizations. Start reading [Creating a new organization from scratch](https://docs.github.com/en/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch) to learn.
5+
NOTE: It is best to have created a github organization to use this template. There are a few features which require it. Namely the dependabot security features for organizations. Start reading [Creating a new organization from scratch](https://docs.github.com/en/organizations/collaborating-with-groups-in-organizations/creating-a-new-organization-from-scratch) to learn.
66

77
This is my recommended way to use this template repo. By doing this you'll be able to use the gitmoji commitizen adapter to add your initial commit message with a gitmoji icon which will later be used to create the changelog automatically.
88

9-
*If you don't care about using gitmoji on your initial commit then you can simply click the `Use this template` button and select `Create a new repository`. [Here are the instructions](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template) to use this GitHub Template. Otherwise continue reading.*
9+
*If you don't care about using gitmoji on your initial commit then you can simply click the `Use this template` button and select `Create a new repository`. [Here are the github template instructions](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template) to use this GitHub Template. Otherwise continue reading.*
1010

1111
First create a new empty github repository **WITHOUT** a `README.md`, `LICENSE`, or `.gitignore` we will add these later. Adding an *'optional description'* is fine at this point.
1212

13-
Then run the following commands in the directory you will be working in:
14-
1513
```bash
1614
mkdir {your_empty_repo_name}
17-
git clone https://github.com/jebarpg/nodejs-project.git {your_empty_repo_name}
15+
git clone https://github.com/jebarpg/template-nodejs-project.git {your_empty_repo_name}
1816
cd {your_empty_repo_name}
19-
rm -rf .git
17+
rm -rf .git package-lock.json docs/typedocs/* CHANGELOG.md
2018
git init
19+
```
20+
21+
Then run the following command in the directory you will be working in:
22+
23+
```bash
2124
git remote add origin https://github.com/{username}/{your_empty_repo_name}.git
2225
```
2326

@@ -34,6 +37,91 @@ or
3437
./repo_management_files/issues.bat #(for Windows OS)
3538
```
3639

37-
To create all the issues needed to finish setting this repo up.
40+
To create all the issues needed to finish setting this repo up. Look at issue #1 to and follow the directions.
41+
42+
43+
44+
45+
46+
47+
48+
-----------------------------------------------------
49+
PUT THIS INTO ISSUE #1
50+
51+
In package.json file do the following:
52+
- [ ] find and replace all occurances of `template-nodes-project` with your repo's name
53+
- [ ] set version to 1.0.0
54+
- [ ] remove and replace keywords with your projects keywords
55+
- [ ] configure or remove the funding to your specifics
56+
- [ ] set the license
57+
- [ ] review the validate-branch-name->pattern to see if the branches are approriate for your project
58+
- [ ] review the cz-gitmoji-adapter->scopes list to see if the enteries are approritate for your project
59+
- [ ] change publishConfig->access to `public` or `restricted` (for private)
60+
61+
```bash
62+
bun i
63+
bun cm
64+
```
65+
66+
In build.yml do the following:
67+
68+
```bash
69+
bun i
70+
bun cm
71+
```
72+
73+
In depcheck.yml do the following:
74+
75+
```bash
76+
bun i
77+
bun cm
78+
```
79+
80+
In docs.yml do the following:
81+
82+
```bash
83+
bun i
84+
bun cm
85+
```
86+
87+
In lint.yml do the following:
88+
89+
```bash
90+
bun i
91+
bun cm
92+
```
93+
94+
In pr.yml do the following:
95+
96+
```bash
97+
bun i
98+
bun cm
99+
```
100+
101+
In release.yml do the following:
102+
103+
```bash
104+
bun i
105+
bun cm
106+
```
107+
108+
In test.yml do the following:
109+
110+
```bash
111+
bun i
112+
bun cm
113+
```
114+
115+
for the commit type select: ` init 🎉 Initial commit. `
116+
for the scope type select; [none]
117+
for the short description: initalizing repo configuration
118+
for the longer description: made all the initial changes to package.json to get the template up and running
119+
for BREAKING CHANGE: Press Enter to skip
120+
for issues closed: #1
121+
NOTE: if you haven't run the issue.sh you can press enter to skip the issues
122+
123+
```bash
124+
git push --set-upstream origin main
125+
```
38126

39127
Open up issue #1 on your `https://github.com/{username}/{your_empty_repo_name}/issues` and complete all the tasks.

package.json

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"dev:mac": "bun i && bun concurrently -k \"bun run hot-reload & open http://127.0.0.1:3000\" \"bun run dev:post\"",
8484
"dev:node": "bun i && bun run build && bun concurrently -k \"nodemon ./dist/server.js localhost 8080\" \"bun run live-reload\" \"bun run format:watch\" \"bun run test:watch:fast\"",
8585
"dev:post": "bun concurrently -k \"bun run live-reload\" \"bun run format:watch\" \"bun run test:watch:fast\"",
86-
"dev:pre": "bun run upgrade:full && bun rebuild && bun run dep:update:all && echo \"YOU CAN ALSO RUN npm-check TO SEE ADDITIONAL DEPENDENCY UPDATES\" && npm i && bun run depcheck && bun run prune:mod && bun run license:summary && bun format && bun run security",
86+
"dev:pre": "bun run upgrade:full && bun rebuild && bun run dep:update:all && echo \"YOU CAN ALSO RUN npm-check TO SEE ADDITIONAL DEPENDENCY UPDATES\" && npm i --legacy-peer-deps && bun run depcheck && bun run prune:mod && bun run license:summary && bun format && bun run security",
8787
"dev:win": "bun i && bun concurrently -k \"bun run hot-reload & start http://127.0.0.1:3000\" \"bun run dev:post\"",
8888
"dev:wsl": "bun i && bun concurrently -k \"bun run hot-reload & wslview http://127.0.0.1:3000\" \"bun run dev:post\"",
8989
"docs": "echo building typedocs && bunx typedoc --validation.notDocumented --plugin typedoc-plugin-coverage --plugin typedoc-plugin-extras --options typedoc.json",
@@ -145,83 +145,83 @@
145145
".prettierignore",
146146
".prettierrc.json",
147147
"license",
148-
"readme-api.md",
149148
"readme.md",
150-
"commit-template.hbs",
151149
"commitlint.config.ts",
150+
"commit-template.hbs",
151+
"readme-api.md",
152152
"default-template.hbs",
153153
"jest.config.json",
154154
"package.json",
155-
"package-lock.json",
156155
"release.config.ts",
157156
"renovate.json",
158-
"tsconfig.json",
157+
"package-lock.json",
159158
"typedoc.json",
159+
"tsconfig.json",
160160
".vscode/settings.json",
161161
"public/.gitkeep",
162162
"repo_management_files/auditchecklist.md",
163+
"repo_management_files/branchnamingconventions.md",
163164
"repo_management_files/cz-emoji-template-extract.js",
164-
"repo_management_files/cz-emoji-type-extract.js",
165165
"repo_management_files/cz-type-extract.js",
166-
"repo_management_files/directorystructuredocument.md",
167-
"repo_management_files/extractfilescopes.js",
168166
"repo_management_files/errorswarningsresolutions.md",
167+
"repo_management_files/extractfilescopes.js",
168+
"repo_management_files/directorystructuredocument.md",
169+
"repo_management_files/cz-emoji-type-extract.js",
169170
"repo_management_files/fileswithgitmojis.md",
170-
"repo_management_files/branchnamingconventions.md",
171+
"repo_management_files/genericcommitmessages.md",
171172
"repo_management_files/gitmojisemver-extract.js",
172173
"repo_management_files/initializationinfo.md",
173-
"repo_management_files/genericcommitmessages.md",
174+
"repo_management_files/issues.sh",
174175
"repo_management_files/labels.sh",
175-
"repo_management_files/packagejsondocument.md",
176176
"repo_management_files/usefultipsandtricks.md",
177-
"repo_management_files/issues.sh",
177+
"repo_management_files/packagejsondocument.md",
178178
".github/dependabot.yml",
179179
".github/workflows/build.yml",
180+
".github/workflows/depcheck.yml",
180181
".github/workflows/docs.yml",
181182
".github/workflows/lint.yml",
182183
".github/workflows/pr.yml",
183184
".github/workflows/release.yml",
184-
".github/workflows/depcheck.yml",
185185
".github/workflows/test.yml",
186186
".husky/commit-msg",
187187
".husky/pre-commit",
188188
".husky/prepare-commit-msg",
189189
".husky/_/.gitignore",
190+
".husky/_/applypatch-msg",
190191
".husky/_/commit-msg",
191192
".husky/_/h",
192193
".husky/_/post-applypatch",
193-
".husky/_/applypatch-msg",
194194
".husky/_/post-checkout",
195-
".husky/_/post-merge",
195+
".husky/_/post-commit",
196196
".husky/_/post-rewrite",
197197
".husky/_/pre-applypatch",
198198
".husky/_/pre-auto-gc",
199-
".husky/_/post-commit",
200-
".husky/_/pre-rebase",
201199
".husky/_/pre-commit",
202-
".husky/_/prepare-commit-msg",
200+
".husky/_/post-merge",
203201
".husky/_/pre-push",
204-
"src/app.ts",
205-
"src/bin/.gitkeep",
206-
"src/controllers/.gitkeep",
207-
"src/middleware/.gitkeep",
208-
"src/routes/.gitkeep",
209-
"src/plugins/.gitkeep",
210-
"src/configs/.gitkeep",
211-
"src/models/.gitkeep",
212-
"src/views/.gitkeep",
213-
"src/utils/.gitkeep",
202+
".husky/_/pre-rebase",
203+
".husky/_/prepare-commit-msg",
214204
"test/app.test.ts",
215205
"test/.gitkeep",
216-
"test/controllers/.gitkeep",
217206
"test/bin/.gitkeep",
218-
"test/configs/.gitkeep",
219207
"test/middleware/.gitkeep",
220-
"test/plugins/.gitkeep",
221-
"test/views/.gitkeep",
208+
"test/configs/.gitkeep",
209+
"test/controllers/.gitkeep",
222210
"test/routes/.gitkeep",
211+
"test/plugins/.gitkeep",
212+
"test/utils/.gitkeep",
223213
"test/models/.gitkeep",
224-
"test/utils/.gitkeep"
214+
"test/views/.gitkeep",
215+
"src/app.ts",
216+
"src/bin/.gitkeep",
217+
"src/controllers/.gitkeep",
218+
"src/configs/.gitkeep",
219+
"src/models/.gitkeep",
220+
"src/middleware/.gitkeep",
221+
"src/plugins/.gitkeep",
222+
"src/utils/.gitkeep",
223+
"src/routes/.gitkeep",
224+
"src/views/.gitkeep"
225225
],
226226
"questions": {
227227
"scope": "Specify a scope: "
@@ -290,7 +290,7 @@
290290
"@semantic-release/npm": {
291291
"cacache": {
292292
"tar": "7.4.0",
293-
"glob": "^10.0.0"
293+
"glob": "^11.0.0"
294294
}
295295
}
296296
}

repo_management_files/initializationInfo.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ This file explains what each piece of information asked for in the [initializati
44

55
## Required Information Descriptions
66

7+
### Accounts To Create
8+
9+
### Project Specific Information Fields
710

811
- Project Name
912
- package.json "name": ""

0 commit comments

Comments
 (0)