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

Add @storybook/react to @redwoodjs/core #815

Merged
merged 1 commit into from
Jul 9, 2020
Merged

Add @storybook/react to @redwoodjs/core #815

merged 1 commit into from
Jul 9, 2020

Conversation

jtoar
Copy link
Contributor

@jtoar jtoar commented Jul 9, 2020

This PR adds the @storybook/react package to @redwood/core. Let me know if this isn't necessary, but I didn't see storybook as a dependency, even though we require it in packages/core/config/storybook/preview.js:

const { addDecorator } = require('@storybook/react')

Also, even when I upgrade one of my local Redwood apps to canary, I have to install it myself (i.e. run yarn workspace web add -D @storybook/react). yarn rw storybook fails otherwise ("missing command start-storybook"). Maybe this is why?

Last question: ideally it should be a dev dependency in Redwood app's web side right?

@peterp
Copy link
Contributor

peterp commented Jul 9, 2020

This is perfect, thanks!

@jtoar jtoar merged commit 1134762 into redwoodjs:main Jul 9, 2020
@jtoar jtoar deleted the add-@storybook/react-to-@redwood/core branch July 9, 2020 20:06
@jtoar
Copy link
Contributor Author

jtoar commented Jul 9, 2020

yarn rw storybook works out of the box on canary now 🎉

@thedavidprice thedavidprice added this to the next release milestone Jul 9, 2020
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.

None yet

3 participants