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

Addon-docs: Reuse extractSource from source-loader #12225

Merged
merged 2 commits into from
Sep 4, 2020

Conversation

phated
Copy link
Contributor

@phated phated commented Aug 24, 2020

Issue: N/A

What I did

While working on source-loader and addon-docs, I noticed duplication on how the source was being extracted. This came to my attention because changes I made in source-loader weren't reflected for static code in addon-docs.

This PR aligns the 2 source extraction methods.

How to test

  • Is this testable with Jest or Chromatic screenshots? Yes, enhanceSource.test.ts already tests this logic.
  • Does this need a new example in the kitchen sink apps? Nope
  • Does this need an update to the documentation? Nope

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

@shilman shilman added block: source maintenance User-facing maintenance tasks source-loader labels Aug 24, 2020
@phated phated requested a review from shilman September 3, 2020 22:07
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.

LGTM. Sorry for the slow turnaround on this!

@shilman shilman changed the title Reuse extractSource Addon-docs: Reuse extractSource from source-loader Sep 4, 2020
@shilman shilman merged commit 194c07d into storybookjs:next Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants