@@ -6,6 +6,8 @@ The `pid-component` is an easily extensible web component that can be used to di
66identifiers in a user-friendly way.
77It is easily extensible to support other identifier types.
88
9+ > A [ React wrapper] ( ) is also available
10+
911The ` pid-component ` dynamically renders a component based on the value of the ` value ` property.
1012Depending on the value, it decides which component to render, what priority to give it, and what props to pass to it.
1113It also renders itself recursively for all its children when unfolded.
@@ -42,24 +44,41 @@ You can try this web component in the [demo](https://kit-data-manager.github.io/
4244
4345There are detailed docs for the ` pid-component ` component
4446available [ in the Storybook] ( https://kit-data-manager.github.io/pid-component ) and in
45- the [ source code] ( src/components/pid-component/readme.md ) .
47+ the [ source code] ( packages/stencil-library/ src/components/pid-component/readme.md) .
4648
4749** Please notice that you must use the hyphenated version of an attribute when using the component directly in HTML (
4850e.g. ` currentLevelOfSubcomponents ` -> ` current-level-of-subcomponents ` ).
4951When using inside Stencil or with JSX/TSX syntax, you must use the camelCase version.**
5052
53+ ## Monorepo
54+
55+ This is a monorepo containing the following packages:
56+
57+ - stencil-library (@kit-data-manager/pid-component )
58+ - react-library (@kit-data-manager/react-pid-component )
59+
60+ [ Lerna] ( https://lerna.js.org ) is used for managing and building the packages (but you can also do it manually). To use, install Lerna:
61+
62+ npm install --global lerna
63+
64+ and then use it to build the packages:
65+
66+ lerna run build
67+
68+ It will make sure to build the packages in the correct order.
69+
5170## How to run when developing
5271
53721 . Clone the repo
54732 . Run ` npm install `
5574
56- For running storybook in dev mode, run these commands in separate terminals:
75+ For running storybook in dev mode, navigate to ` packages/stencil-library ` and run these commands in separate terminals:
5776
5877- ` npm run buildWatch `
5978- ` npm run storybook `
6079
6180Attention: Do ** NOT** run ` npm run start ` . It will cause the storybook to not work properly.
62- If you did run ` npm run start ` , delete the following folders and run ` npm install ` again:
81+ If you did run ` npm run start ` , delete the following folders (in ` packages/stencil-library ` ) and run ` npm install ` again:
6382
6483- ` node_modules `
6584- ` www `
0 commit comments