I'm a junior and I would like to start using Storybook in my Next.JS personal project. I have never used it before and all examples I found are basically design libraries that for example the whole company uses for multiple projects.
My question is, if I'm only using Storybook for one project/one repository do I:
- install it as a devDependency (so it doesn't affect build?) and run it in that one project
- or create new repository for Storybook only where I move my components and then import them back into the original project?
It doesn't sound very effiecient to me to take my components out just to import them back in and keep two repos updated and running at the same time.
I tried to find (unsuccesfully) an open-source/public project that uses Storybook in it's own repository as a devDependency for reference! I only found the big, separate libraries though. All the tutorials create a new project titled something like "Storybook example" so that doesn't help either.
Thank you in advance!
Storybook needs to be installed into a project that is already set up with a framework. It will not work on an empty project.
– Jungle