Skip to content

refactor: Colocate stories and components

Paul Gascou-Vaillancourt requested to merge 215-colocate-stories-components into master

Warning

This MR changes the projects config and files structure. If and when it's merged, any open MR with changes to a stories file will need to be updated.

What this MR does

This MR reorganizes the files structure to move stories closer to the component they describe. We want to match the structure that Storybook's documentation suggests, eg:


└── src
    └── components
        └── button
            ├── button.js
            └── button.stories.js
  • All stories have been moved next to their associated Vue files, as proposed in #215 (closed)
  • ESLint and Storybook configs have been updated accordingly.
  • Files in stories/utils have been moved to helpers
  • Import statements have been updated to reflect the new files structure
  • Rollup config has been updated to ignore stories files in the components directory

Closes #215 (closed)

Edited by Paul Gascou-Vaillancourt

Merge request reports