-
Notifications
You must be signed in to change notification settings - Fork 0
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
Project Structure #1
Comments
Hello @mjablecnik 👋 In fact, having the stories living next to the widgets is something not just considered, but also wanted to have (I personally liked it as well). But, we ended up going against it for the following reasons:
For one of our users with a big project, they realized that having widgetbook in a separate package is not that bad, as they could counter it with split editors or file finding. We are still open for suggestions if you have any on how to counter the above problems. |
|
Generally, one of our requirements is that |
Yes, it make sense to have widgetbook folder out of the main project code. I will try to think about how to solve it. But right now I do not have any idea how to do it somehow else.. You can only give a choice to developer if he want to have it in extra directory or in the main project but with warning about these disadvantages.. |
You can still technically have your widgetbook within your main project, but it is not something we would be willing to document or provide first-class support for it. |
Hello, when I see your Project Structure,
I want to ask you if you think about have your stories in same directory where is also widget.
For example I have this project: https://github.com/mjablecnik/design_package_example
where I have SimpleButton component in one directory with simple_button_styles, simple_button_stories and golden tests:
https://github.com/mjablecnik/design_package_example/tree/master/lib/design/buttons/simple_button
Reason is don't have more separate directory trees for stories, golden tests or styles but everything what depends with my widget component is in the same directory with the component and avoid splitting mutually related components into multiple directories.
What do you think about it? I solved this with storybook_toolkit which support generate golden tests in directory where I need.
Is something possible also with your Widgetbook 4?
The text was updated successfully, but these errors were encountered: