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

Move Storybook to the repository root #275

Merged
merged 9 commits into from
May 8, 2019

Conversation

i-like-robots
Copy link
Contributor

@i-like-robots i-like-robots commented Apr 24, 2019

This PR moves Storybook from a subdirectory (tools/x-storybook) up to the repository root.

This enables several useful features as discussed in #177:

  • Components no longer need to be specified as dependencies of Storybook
  • Storybook will be able to watch components for changes

Please note that this PR does not make it possible to directly include a component's source code into a story as this will require changes to JSX transpilation. I will do this in another PR.

Please also note that this implements Storybook v5 rather than the previous v4. Other than changes to configuration the "options" add-on has been deprecated.

To rebase onto this branch you will need to:

  • Update .storybook/register-components.js, please note that you should now use a path specifier rather than a bare module reference.
  • Remove any changes made to x-storybook/package.json

@apaleslimghost
Copy link
Member

I've removed the x-storybook project from Snyk to get it passing

@apaleslimghost apaleslimghost merged commit 83524a8 into master May 8, 2019
@apaleslimghost apaleslimghost deleted the matth/storybook-top-level branch May 8, 2019 11:19
rowanbeentje pushed a commit that referenced this pull request Nov 24, 2021
Move Storybook to the repository root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Cleaning things up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants