-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Adding storybook #297
Comments
Haha one of the reasons we made https://github.com/carteb/carte-blanche is that all the configuration of storybook annoyed us, love that you're going down that path! Anyhow, I think it's out of the scope of the project, but I'm biased so I'll let others have this discussion! |
@mxstbr it's depend. Yep. I agree it might be out of scope for this project. Anyway, I think now we've a solid base(thanks to this project) to add some default config. |
I think it is out of scope to ship storybooks by default with this project, but I think it would be nice if there were a way to add storybooks to a |
I'm not opposed to providing something that lets you quickly play with a single component and iterate on it in isolation. This can be |
@lacker I totally agree with your comments. I just updated React Storybook's webpack environment very similar to react-scripts. We are looking to create a generator project called I'll update as we add more improvements to this process. |
I've build a simple tool to add storybook to any React app. I think we could close this now. |
I just wanted to share a though I had about this issue. When asked if Back into the storybook/carte-blanche integration into create-react-app, it seems to me that we need an installation step that is aware of create-react-app specifics (in this case it's not the java/gradle build step, but it's webpack config, babel options, etc.). This linking logic was implemented by @arunoda in the separate |
If you have specific suggestions on what we should expose we're happy to discuss them. But please also see #339 (comment). We don't want to work on extensibility yet because things are changing too fast, and it would undermine our ability to provide a great experience (because naturally people will install all sorts of plugins, some of which will be unstable or buggy, and we are back to complicated builds and broken examples). |
I’ll reopen—I don’t want to force Storybook integration upon anyone but I’d like to see it documented in the Usage Guide. @arunoda Would you like to make a PR? |
Wow. That's super awesome. |
Let’s iterate on #738. Closing. |
Guys,
This project rocks. To follow this path, we at https://github.com/kadirahq/react-storybook is also working on a zero config mode.
I'm asking whether will that be possible to add storybook into this mix?
Basically, this is something I'm proposing:
react-storybook
into dependenciesnpm run storybook
it'll start running stories locatedsrc/stories
or somewhere like that?The text was updated successfully, but these errors were encountered: