Skip to content

Commit 20c59db

Browse files
authored
Merge pull request #87 from TechnologyEnhancedLearning/docs-td-5671-review-setup-instructions
TD-5671 docs(readme): stylistic improvements and corrections to readme
2 parents 5246e39 + ddbf4e1 commit 20c59db

File tree

1 file changed

+46
-46
lines changed

1 file changed

+46
-46
lines changed

README.md

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,28 @@ the ability to produce static prerendered html. The prerendered html is written
5454

5555

5656
- **Get the repo:** open powershell as admin, ```cd``` to where you keep your repos. Run ```git clone https://github.com/TechnologyEnhancedLearning/TELBlazor.git```
57-
- **Create local gitignored configuration files from templates:** open the project in visual studio
57+
- **Create local gitignored configuration files from templates:** open the project in Visual Studio
5858
- search template
59-
- create a copy of each template removing the .template post fix
59+
- create a copy of each template removing the '.template' post fix
6060
- **Create GitHub Personal Access Token (PAT) for consuming [TEL git hosted nuget packages](https://github.com/orgs/TechnologyEnhancedLearning/packages) :**
6161
- go to your [GitHub profile tokens section](https://github.com/settings/tokens)
62-
- Select Personal access tokens → Tokens classic → Generate new token (classic)
63-
- give it a Note, e.g. "TEL Package Access" (we will be storing it as the env var TEL_GIT_PACKAGES_TOKEN)
62+
- Select**Personal access tokens****Tokens classic****Generate new token (classic)**
63+
- give it a Note, e.g. 'TEL Package Access' (we will be storing it as the env var 'TEL_GIT_PACKAGES_TOKEN')
6464
- set the expiration date to something reasonable (e.g. 90 days)
6565
- select the scopes you need for the token
6666
- as a minimum select `read:packages` and you may wish to increase the expiration date.
6767
- if you want to publish packages you will need `write:packages` and `delete:packages` but this is not recommended for development
68-
- Generate token
68+
- generate token
6969
- copy the token ***immediately*** (it will not be accessible again)
7070
- **Set system wide environment variables (useful for future projects too):**
71-
- Open Start, type "Environment Variables", and select "Edit the system environment variables"
72-
- In the System Properties window, click Environment Variables
73-
- Under **System variables**, click New
74-
- Enter the variable names and variable values as follows:
71+
- open Start, type 'Environment Variables', and select **Edit the system environment variables**
72+
- in the **System Properties** window, select **Environment Variables**
73+
- under **System variables**, select **New**
74+
- enter the variable names and variable values as follows:
7575
- GITHUB_USERNAME / [Your GitHub username]
7676
- TEL_GIT_PACKAGES_TOKEN / [The copied token]
77-
- then click OK
78-
- Click OK again to close all dialogs.
77+
- then select **OK**
78+
- select **OK** again to close all dialogs.
7979
- **Restore Nuget, Npm, Tooling, playwright and build:**
8080
- run a new admin powershell terminal in the TELBlazor repo root
8181
- run the following commands
@@ -120,9 +120,9 @@ It is recommended you check setup by reading this section and making sure packag
120120
#### Contributing to the project
121121

122122
- [Branch naming rules](https://github.com/TechnologyEnhancedLearning/TELBlazor/blob/master/.releaserc.json)
123-
- ⚠️ Commit names are used to generate the package version, repo version and change log so much be correct ⚠️[Commit Naming Rules](https://github.com/TechnologyEnhancedLearning/TELBlazor/blob/master/.commitlintrc.json)
123+
- ⚠️ commit names are used to generate the package version, repo version and change log so much be correct ⚠️[Commit Naming Rules](https://github.com/TechnologyEnhancedLearning/TELBlazor/blob/master/.commitlintrc.json)
124124
- e.g.
125-
> "docs(readme): added detail on commit rules"
125+
> 'docs(readme): added detail on commit rules'
126126

127127
#### Configuring the project
128128

@@ -137,7 +137,7 @@ It is recommended you check setup by reading this section and making sure packag
137137
|Package.Settings.Props.local|overwrite package.settings.props locally | DisablePackageGeneration | Stops package creation on build. |
138138
|appsettings | | | Serilog configuration |
139139

140-
> **Nb.** Its recommended not to build the solution with package generation enabled and project reference disabled at the same time.
140+
> **Nb.** It is recommended not to build the solution with package generation enabled and project reference disabled at the same time.
141141
> **Nb.** Creating your package outside of the project can be convenient for other local solutions consuming it.
142142
143143

@@ -148,29 +148,29 @@ It is recommended you check setup by reading this section and making sure packag
148148
- run wasmstaticclient to see pure wasm site
149149

150150
#### Building the package
151-
- To build a package
151+
- to build a package
152152
- nuget config
153153
- ensure the feed is still set to local```<add key="TELBlazorPackageSource" value="%LOCAL_PACKAGES_PATH%" />```
154-
- Package.settings.props.local to create package
155-
- NugetPackagesOutputPath -> LOCAL_PACKAGES_PATH
156-
- UseTELBlazorComponentsProjectReference -> true
157-
- TELBlazorPackageVersion -> 9.9.9-local of something higher than you have
158-
- DisablePackageGeneration -> false
159-
- delete lock files
154+
- **package.settings.props.local** to create package
155+
- NugetPackagesOutputPath -> 'LOCAL_PACKAGES_PATH'
156+
- UseTELBlazorComponentsProjectReference -> 'true'
157+
- TELBlazorPackageVersion -> '9.9.9-local' or something higher than you have
158+
- DisablePackageGeneration -> 'false'
159+
- delete **.lock** files
160160
- build solution
161-
- change package.settings.props.local to consume package
162-
- UseTELBlazorComponentsProjectReference -> false
163-
- DisablePackageGeneration -> true
161+
- change **package.settings.props.local** to consume package
162+
- UseTELBlazorComponentsProjectReference -> 'false'
163+
- DisablePackageGeneration -> 'true'
164164
- build solution
165165

166166

167167

168168
#### Testing the project
169169
- you can use the test runner
170-
- runsettings allows configuration of headless and tracing
171-
- packagesettings.props sets thresholds
172-
- running at solution level ./run-tests-and-report-with-env-values.ps1 (see in the file for specific arguments you may want to set)
173-
- will produce a test coverage site [your repo folder]/TELBlazor/CoverageReport/index.html
170+
- **runsettings** allows configuration of headless and tracing
171+
- **packagesettings.props** sets thresholds
172+
- running at solution level **./run-tests-and-report-with-env-values.ps1** (see in the file for specific arguments you may want to set)
173+
- will produce a test coverage site **[your repo folder]/TELBlazor/CoverageReport/index.html**
174174

175175

176176

@@ -258,35 +258,35 @@ It is recommended you check setup by reading this section and making sure packag
258258

259259
### Troubleshooting
260260
#### Package build errors
261-
- delete local `TELBlazor.Components` packages
262-
- check `TELBlazorPackageVersion` has been incremented
263-
- delete lock files
264-
- clean solution
265-
- check environment values in `props` and `nuget.config`
261+
- delete local **TELBlazor.Components** packages
262+
- check **TELBlazorPackageVersion** has been incremented
263+
- delete **.lock** files
264+
- clean the solution
265+
- check environment values in **props** and **nuget.config**
266266
- restore nuget packages
267-
- restore solution
268-
- if still not working delete bin and obj
269-
- if still not working close visual studio and reopen
270-
- if there are still issues its easier to problem solve by using a random very high `TELBlazor.Components` package version number and ensuring it fails and says it found the source but not the version
267+
- restore the solution
268+
- if still not working delete **bin** and **obj**
269+
- if still not working, restart Visual Studio
270+
- if there are still issues its easier to problem solve by using a random very high **TELBlazor.Components** package version number and ensuring it fails and says it found the source but not the version
271271
#### Git commit names
272272
- git commit names can be caught locally
273273
- if they are not
274-
- fetch, pull, squash to before the change and then git push force
274+
- **fetch**, **pull** and **squash** before the change and then `git push origin <your_branch_name> --force`
275275

276276

277277
# How to consume TELBlazor.Components
278-
1. Select a production version of the package [Package list for TELBlazor.Component on git](https://github.com/TechnologyEnhancedLearning/TELBlazor/pkgs/nuget/TELBlazor.Components)
279-
1. Set up css references and dependency injection using lean host examples WasmServerHost, WasmServerHost.Client and WasmStaticClient
278+
1. select a production version of the package [Package list for TELBlazor.Component on git](https://github.com/TechnologyEnhancedLearning/TELBlazor/pkgs/nuget/TELBlazor.Components)
279+
1. set up CSS references and dependency injection using lean host examples WasmServerHost, WasmServerHost.Client and WasmStaticClient
280280
from the repo and ShowCase project for how to include the package.
281-
1. You will need a copy of nhsuk.css and a reference <link href="css/nhsuk.css" rel="stylesheet" /> see gulp in the previously mentioned projects
282-
1. See setup notes for instructions on getting a git nuget token for consuming the package.
281+
1. you will need a copy of nhsuk.css and a reference <link href="css/nhsuk.css" rel="stylesheet" /> see gulp in the previously mentioned projects
282+
1. see setup notes for instructions on getting a git nuget token for consuming the package.
283283

284284
# Solution and Pipeline
285285

286286
## Features of CICD
287-
- There is a readme in the CICD
288-
- A DevShowCase sight is created using a DevPackage and the same in production
289-
- The dev pipeline also publishes a coverage report
287+
- there is a readme in the CICD
288+
- a DevShowCase site is created using a DevPackage and the same in production
289+
- the dev pipeline also publishes a coverage report
290290

291291

292292
# Solution Detail
@@ -319,7 +319,7 @@ from the repo and ShowCase project for how to include the package.
319319
## Notes
320320

321321
### Stuff you don't need to know (but may be useful for a specific issue on searching the readme)
322-
- It is not render auto per components because the intention is to be used in MVC views.
322+
- it is not render auto per components because the intention is to be used in MVC views.
323323
- Xunit is used with Bunit and Nunit with playwright, either could be
324324
changed so that they are using the same and this could be done in future
325325
as the libraries improve but currently each is being used with the

0 commit comments

Comments
 (0)