How to create a Storybook build in NX? #5159
riceboyler
started this conversation in
General
Replies: 1 comment
-
I'll answer my own question, thanks to having watched the videos on Egghead. The easiest way is to use the NX Console extension in VS Code, but from the command line, rather than running |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First, I think NX is absolutely outstanding. I had moved away from it for a little while and played with RushJS, but it is so much less user friendly than NX, and once I found that I could publish libraries in NX with relative ease, I came right back.
So my question is this: I want to create a Storybook build that I can publish so that stakeholders can look at and play with components in development. Storybook supports it (https://storybook.js.org/docs/react/workflows/publish-storybook), but there doesn't appear to be any equivalent command in NX?
FWIW, I tried
nx build {library}:storybook
but all it did was run storybook locally. Any advice would be very welcome!Beta Was this translation helpful? Give feedback.
All reactions