-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Simplify setup AKA 5.0.0 #223
Comments
Ideally for webpack users it should not require editing project's webpack config and work like storybook (takes your webpack config but allows to extend it). Even better would be just a plugin for webpack. In this setup is really a breeze: https://github.com/carteb/carte-blanche#setup I can't speak a lot for non-webpack users but sane defaults sound good to me. Styleguidist own code should definitively be compiled since it is also will increase build speed I think. Also, distributing it is much easier then it's browser ready. Not sure why css-modules is a problem here. You still can generate a separate CSS bundle and provide it along with the I don't think CLI tool will help a lot, but it might be a nice addition. Good example is create-react-app. |
Webpack plugin: I’m sure it’s possible to make a Webpack plugin for Styleguidist too. But I don’t think it should be the primary way of using Styleguidist. There are so many projects without Webpack (like component libraries or separate components). So it’s far from ideal but definitely nice to have. Storybook: it sounds great except they don’t do that. They have default create-react-app-like config that works only when you don’t have any custom config. Otherwise it’s not different from what we have now. CSS: yeah, the main benefit is easier theming. Plus no need for CSS loader (one of them) — less possible conflicts with user’s loaders (same benefit for compiling JS). CLI: I hope it would make initial setup simpler and less scary. And looks great in docs and on site (which I want to make after this). |
I could see styleguidist being multiple packages--core, which would be usable via webpack plugin or via cli. |
CLI (I mean config CLI, not the one we have now) will be a separate package that you install globally anyway. |
Re styling, what are your thoughts on using a web component approach (with fallbacks) to improve isolation of Styleguidist components from Project components? |
How is this better than JSS? Especially if they aren’t supported almost anywhere. |
Because the Styleguidist components won't be interfered with by global styles set from an imported stylesheet |
Same for JSS with jss-isolate but I don’t see any benefits ;-| |
The project I'm working on sets a bunch of styles on bare elements - h1-6, p, a, etc. - this wreaks havoc with Styleguidist |
We can use divs and spans with the same effect but without need for any polyfills. |
I believe if you use something like |
That’s why I like JSS here: it solve multiple problems. |
Yes, the idea behind jss-isolate is exactly this. Also we are thinking of adding an option for shadow-dom like isolation |
Looks like it’ll be better than I thought ;-) |
Not sure if this is the right place to do this, but anyway: may I suggest adding an option to build docs with |
@n1313 We don’t use CLI, but you can try progress-bar-webpack-plugin — maybe we should add it by default if it‘s good. |
By saying "from CLI" I mean running |
@n1313 Styleguidist CLI uses Webpack Node.js and |
Oh, I see, you were talking about Webpack CLI, not Styleguidist CLI. Right. I will look into the plugin then. Thanks! |
Migration docs? Or will it be easy to upgrade from v4? Sorry if I missed another issue that addresses this already! |
@tizmagik I have a change log draft so far. There are some migration notes. Let me know if I need to write more. |
@sapegin, I think what most users would like to know is answers to "why should I update" and "what do I need to change in my project if I decide to update" questions. It would be great is these points could be highlighted in the release notes. |
@n1313 I’ve tried to answer both questions. Let me know if anything is missing. |
yo, @sapegin, is there any release/changelog notes for v5-beta? |
@iamstarkov Yo! There’s a change log draft with migration notes and all braking changes. Let me know if I miss something. And I appreciate any feedback! ;-) |
The official beta is here. Please try it if you have some time ;-) https://github.com/styleguidist/react-styleguidist/releases/tag/5.0.0%40beta.9 |
Exciting!! 😁 |
Work in the next branch
Difficult first-time configuration is a known issue that we really want to solve. Here are some ideas for the next major release that might help:
Postponed:
Anything else? Any feedback?
/cc @okonet, @varya (as you have fresh experience ;–)
The text was updated successfully, but these errors were encountered: