You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the local github repository requires you to manually clone the component library to your computer, build, and link it:
100
100
101
-
Preparing your local copy of the component library:
101
+
##### Preparing your local copy of the component library:
102
+
_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)_
yarn link # now there is a magic symlink in `~/.config/yarn/link` usable by the webstore app
107
106
108
-
If there are changes to the component library, you will need to rebuild in order to get the newest changes. You can either rebuild manually after changes are made, or have the webstore continually "watch" for changes:
107
+
Choose one of the below:
109
108
110
-
npm run build-lib # for a onetime build
111
-
npm run watch-lib # for a continuous build
109
+
npm run build-lib # must be run every time you want a change to show in the webstore
110
+
npm run watch-lib # run once and the wcl will watch for changes
112
111
113
-
Back in your webstore checkout:
112
+
##### Preparing your local copy of the webstore:
114
113
114
+
# run in a separate terminal window than where the wcl is
115
+
cd webstore
115
116
yarn link "@scientist-softserv/webstore-component-library"
and your `webstore` will start using the local component build.
118
-
119
-
If you are using a local version of the component library, you will need to temporarily delete the line `"@scientist-softserv/webstore-component-library": "VERSION_HERE",` from the `package.json` file in order to see your local changes as opposed to pulling from the github package.
120
+
##### Return to using the packaged version of the webstore-component-library:
0 commit comments