-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update documentation for npm link #82
Comments
Deffo up for updating the documentation, this stuff is so tricky! When using nvm you shouldn't need |
Yeah I thought that would be the case but for me I had to use sudo! Not sure why it wouldn’t work otherwise.
… On 28 Mar 2024, at 16:34, Michael Barton ***@***.***> wrote:
Deffo up for updating the documentation, this stuff is so tricky!
When using nvm you shouldn't need sudo to run npm link, everything is under your home directory.
—
Reply to this email directly, view it on GitHub <#82 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APUTDK7AC7M3WOBKIPYS5MTY2QZ75AVCNFSM6AAAAABFNA6N3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRVGY2DENRYHA>.
You are receiving this because you authored the thread.
|
You are nearly there. I was going to update the docs so thank you for beating me to it :) NPM linking
Pitfalls StorybookIf you want to develop on the component without using the client, you can now use storybook 8.0 instead. Again, best to use node LTE version >=20
|
Perfect @eatyourpeas thank you. Leave it to me |
Closing as per PR 103 in documentation repo |
After discussion with @eatyourpeas the thought came to my mind that the documentation is not up to date for performing npm link between the component and the client, which is crucial for local development.
Simon has a simple methodology for performing this action and as such we should update the documentation accordingly. I will outline what I can remember here, @eatyourpeas please feel free to edit/add anything I have missed and then we can make changes in the documentation site.
npm ls -g --depth=0 --link=true
, both in the client and component.nvm use node
to move to the latest version of node. Perform this in the client and the component.sudo npm link @rcpch/digital-growth-charts-react-component-library@7.0.0
. Then in the component, performnpm link
npm run build
in the component and following that runs/deprecated/start-react-client
The specified version of the component should now be running alongside the client.
Note: whenever changes are made to the component library, execute
ctrl+C
in the client and re-runnpm run build
in the component. Then, executes/deprecated/start-react-client
again in the client terminal.The text was updated successfully, but these errors were encountered: