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

Core: Add frameworkPath to options to support custom frameworks #12087

Merged
merged 1 commit into from
Aug 18, 2020
Merged

Core: Add frameworkPath to options to support custom frameworks #12087

merged 1 commit into from
Aug 18, 2020

Conversation

ThaNarie
Copy link
Contributor

Issue: #12075

What I did

This addition allows an override of the hardcoded @storybook/${framework} import path in the (generated) preview code.

I tested these changes first in a separate project that would need this feature to work, by changing the node_modules.

I'm not sure if any of the automated tests cover the creation of custom frameworks, or running normal framework webpack builds at all, so I haven't run or included any tests.

How to test

  • Is this testable with Jest or Chromatic screenshots? - Don't think so
  • Does this need a new example in the kitchen sink apps? - No
  • Does this need an update to the documentation? - Yes, which I tried to provide in this PR

If your answer is yes to any of these, please make sure to include it in your PR. - Done

This addition allows an override of the hardcoded
`@storybook/${framework}` import path in the (generated) preview code.

re #12075
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks awesome @ThaNarie !

Are you OK if we release this in a 6.1-alpha next week?

@ndelangen @tmeasday Do you think we can call this a bug and patch it to 6.0? I think it was an accident that we don't allow non-storybook framework packages.

Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I can see the argument this is a bugfix

Copy link
Member

@ndelangen ndelangen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants