-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating the missing step for linking dependent repo's locally
- Loading branch information
1 parent
445764a
commit 784f286
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,10 +166,12 @@ Below you can find sample steps for linking a local `components` package to the | |
```bash | ||
git clone [email protected]:webex/components.git | ||
``` | ||
|
||
2. Build `components` code. This will generate a `dist` folder | ||
```bash | ||
cd components | ||
npm install | ||
npx npm-install-peers (This is required to install peer dependencies if npm version is lower than 7) | ||
npm run build | ||
``` | ||
|
@@ -178,11 +180,13 @@ Below you can find sample steps for linking a local `components` package to the | |
"@webex/components": "file:../components", // Or corresponding path to local clone | ||
npm install | ||
``` | ||
4. Install dependencies of `widgets` repository and the react dependency (this is required because`components` repository uses react) | ||
4. Install peer dependencies of `widgets` repository and the react dependency (this is required because`components` repository uses react) | ||
``` | ||
npx npm-install-peers | ||
npm link ../components/node_modules/react | ||
``` | ||
5. Start up the widget sample | ||
``` | ||
npm run start | ||
|