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

Storybook: Use plop file generator for creating new Stories #200

Merged
merged 3 commits into from
Sep 28, 2023

Conversation

scottrippey
Copy link
Member

What

Adds a root pnpm run plop command.
This will prompt you to choose a components/**/*.tsx file, and will create a *.stories.tsx file to match.

Kapture 2023-09-20 at 09 33 44

@vercel
Copy link

vercel bot commented Sep 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextjs-sanity-fe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 28, 2023 4:40pm

@scottrippey scottrippey changed the base branch from main to storybook-integration September 20, 2023 23:01
Copy link

@bryceknz bryceknz left a comment

Choose a reason for hiding this comment

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

Functionality wise, this is great! I ran it locally and the output works like a charm 🚀. I spotted a couple of potential improvements on the command-line display and left suggestions below.

Glad to see this taking shape! 🎉

plopfile.mjs Outdated Show resolved Hide resolved
plopfile.mjs Outdated Show resolved Hide resolved
plopfile.mjs Show resolved Hide resolved
plopfile.mjs Outdated Show resolved Hide resolved
@scottrippey scottrippey merged commit 6831e49 into storybook-integration Sep 28, 2023
2 checks passed
@scottrippey scottrippey deleted the storybook-integration--plop branch September 28, 2023 16:52
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