Skip to content
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

Update to Storybook v7 #2748

Merged
merged 1 commit into from
Feb 27, 2023
Merged

Update to Storybook v7 #2748

merged 1 commit into from
Feb 27, 2023

Commits on Feb 27, 2023

  1. Update to Storybook v7

    Apply the following changes to perform the bulk of the migration:
    - `npx storybook@next upgrade --prerelease`
      This includes a number of automigrations which update core config to
      match the new v7 API
    - Disable `storyStoreV7` as a temporary workaround for an error
      loading stories. This will be re-enabled (v7 default) once the
      remaining issues are resolved
    - Disable auto docs generation for now, need to clean up stories
      to properly take advantage of CSF3 benefits etc.
    - Migrate to CSF3 story structure and syntax
      `npx storybook@next migrate csf-2-to-3 --glob="src/**/*.stories.js"`
      `npx storybook@next migrate csf-2-to-3 --glob="packages/**/*.stories.js"`
      This is only a partial migration and the remainder will need to
      be completed manually to take full advantage of the improvements
      and simplifications introduced in CSF3
    - Remove the root prefix in each story (e.g. `Components/`) and move
      to a centralised config in `.storybook/main.js` via the `stories`
      entry. Experiemental components etc. will be identified differently
      after the CSF3 migration is completed fully
    AlanGreene committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    a242804 View commit details
    Browse the repository at this point in the history