Skip to content

Commit eb6224f

Browse files
authored
Merge pull request #387 from scientist-softserv/readme-updates
update the readme
2 parents 8af2018 + 2a2f217 commit eb6224f

File tree

1 file changed

+27
-18
lines changed

1 file changed

+27
-18
lines changed

README.md

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -103,30 +103,39 @@ yarn upgrade @scientist-softserv/webstore-component-library --latest
103103
Using the local github repository requires you to manually clone the component library to your computer, build, and link it:
104104

105105
#### Preparing your local copy of the component library:
106-
_Prerequisite: clone the [webstore-component-library](https://github.com/scientist-softserv/webstore-component-library.git) and [get the app running](https://github.com/scientist-softserv/webstore-component-library#running-the-app)_
107-
108-
cd webstore-component-library
109-
yarn link # now there is a magic symlink in `~/.config/yarn/link` usable by the webstore app
106+
_Prerequisite: clone the [webstore-component-library](https://github.com/scientist-softserv/webstore-component-library.git) (wcl) and [get the app running](https://github.com/scientist-softserv/webstore-component-library#running-the-app)_
107+
``` bash
108+
cd webstore-component-library
109+
yarn link # now there is a magic symlink in `~/.config/yarn/link` usable by the webstore app
110+
```
110111

111112
Choose one of the below:
112-
113-
npm run build-lib # must be run every time you want a change to show in the webstore
114-
npm run watch-lib # run once and the wcl will watch for changes
113+
``` bash
114+
npm run build-lib # must be run every time you want a change to show in the webstore
115+
npm run watch-lib # run once and the wcl will watch for changes
116+
```
115117

116118
#### Preparing your local copy of the webstore:
117-
118-
# run in a separate terminal window than where the wcl is
119-
cd webstore
120-
yarn link "@scientist-softserv/webstore-component-library"
121-
yarn remove @scientist-softserv/webstore-component-library
122-
(restart the dev server)
119+
``` bash
120+
# run in a separate terminal window than where the wcl is
121+
122+
cd webstore
123+
yarn link "@scientist-softserv/webstore-component-library"
124+
yarn add react-bootstrap@<version-number> # e.g. yarn add [email protected]
125+
# use the version listed in the dependencies of "@scientist-softserv/webstore-component-library" in the "yarn.lock" file.
126+
yarn remove @scientist-softserv/webstore-component-library
127+
(restart the dev server)
128+
```
123129

124130
#### Return to using the packaged version of the webstore-component-library:
125-
# in the webstore repository
126-
yarn unlink "@scientist-softserv/webstore-component-library"
127-
git checkout package.json yarn.lock
128-
yarn install --check-files --force
129-
(restart the dev server)
131+
``` bash
132+
# in the webstore repository
133+
134+
yarn unlink "@scientist-softserv/webstore-component-library"
135+
git checkout package.json yarn.lock
136+
yarn install --check-files --force
137+
(restart the dev server)
138+
```
130139

131140
## Exception Handling
132141
The application is configured to use Sentry. Refer to ".env.development.example" for how to find the necessary variables.

0 commit comments

Comments
 (0)