start-ui-web
start-ui-web copied to clipboard
feat(#126): add tool to generate stories
This PR is a start for the #126 discussion.
https://user-images.githubusercontent.com/3920615/189230973-7b7fcfdb-f402-4052-ae61-e29b6612581f.mp4
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Updated |
---|---|---|---|
start-ui | β Ready (Inspect) | Visit Preview | Sep 13, 2022 at 0:27AM (UTC) |
Kudos, SonarCloud Quality Gate passed!Β Β
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
if i select a component without a index.tsx
filename
$ plop story
? Component name for story src/app/auth/PageLogin.tsx
β ++ /src/app/auth/docs.stories.tsx
Done in 26.97s.
the result is not correct
import React from 'react';
import { ComponentMeta } from '@storybook/react';
import { Auth } from '@/app/auth';
export default {
title: 'App/Auth',
} as ComponentMeta<typeof Auth>;
export const Default = () => (
<Auth />
)
Just a thought: I have to be honest, I'm not a huge fan anymore of that PR.
- We already have a lot to maintain, I'm not sure adding new feature like that is that useful to everyone.
- This could be done through Start UI documentation by documenting how to add useful snippets in IDEs
- Generators is what we want to avoid providing Start UI
- Mixing JS (plopfile config) with TS (all the rest) is not that great even if they are not related.
Closed for all the reasons above