Replies: 3 comments 11 replies
-
In /config/storybook i added
and package.json:
But the problem seems with installing storybook in the main /package.json I added:
pnpm clean but got a > storybook -p 6006 -c config/storybook sh: storybook: command not found |
Beta Was this translation helpful? Give feedback.
-
Hello, unfortunately, I don't have any examples for Storybook, I had problems 1 year ago mocking remix API so I gave up and didn't come back to it recently. But my design was to put it directly in the UI package not in it's own package. Since it is testing the UI components I think it makes sense to live there. |
Beta Was this translation helpful? Give feedback.
-
I had the same problem, fixed it by using |
Beta Was this translation helpful? Give feedback.
-
I was trying to integrate storybook into the mono repro but got really stuck at it.
Do you have any interest in integrating it ( or perhaps a more lean solution, i tried cosmo-react but it had react 17 deps so for now stick with storybook)
the idea would be each package could contain a /stories folder that gets readup by storybook.
I think one wants to implement this mono repro wide with a package for storybook in /config to follow your existing mono repro structure?
I got as far looking at an example ui library im using that implements storybook in the root folder of the mono repro in a ./storybook/main.msj file with
How would you approach this some pointers would be good I can PR but probably my skillset here is lacking a bit getting confused by several configs i saw that implement storybook differently.
I assume the best practice is to include a storybook subfolder here
and then call it inside /apps/myapp/package.json like
Beta Was this translation helpful? Give feedback.
All reactions