Skip to content

Project Structure #1

@mjablecnik

Description

@mjablecnik

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?

Screenshot 2024-07-29 at 10 23 55

Screenshot 2024-07-29 at 10 32 53

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions