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

feat(mocks): improve addon setup for storybook-builder #2709

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

bashmish
Copy link
Member

What I did

For Storybook 7+ (@web/storybook-builder):

  1. make a single entry point @web/mocks/storybook-addon with automatic setup
  2. explain how to setup interceptor without using the argument interceptor in mockRollupPlugin({ interceptor })
  3. clarify in docs in which files changes are not necessary
    because people now just copy the code, even if it says it's for Storybook 6

This is pretty hard to support 2 docs for very different setup side-by-side, I hope to deprecate the Storybook 6 one soon and release @web/mocks v2 without it.

Copy link

changeset-bot bot commented Apr 22, 2024

🦋 Changeset detected

Latest commit: 59d5386

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@web/mocks Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@bashmish bashmish requested a review from thepassle April 22, 2024 21:44
@bashmish bashmish force-pushed the feat/mocks-improve-addon-setup-for-storybook-build branch from 1aef2ce to 59d5386 Compare April 22, 2024 21:57
@bashmish bashmish merged commit 42e363b into master Apr 23, 2024
6 of 7 checks passed
@bashmish bashmish deleted the feat/mocks-improve-addon-setup-for-storybook-build branch April 23, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants