Closed kmonahan closed 2 years ago
Ooo, interesting. @kmonahan - I like this idea. Would you be able to add some documentation to the README? It can go in the "Other Commands" section, or in its own section if the documentation gets large enough.
Updated the README to include npm run component
Borrows from https://github.com/forumone/gesso/blob/5.x/lib/component.js to create a component generator script. Run
npm run component
and answer the prompts to scaffold files for either basic React functional component or an Emotion styled component with optional Storybook file.Probably more useful with Storybook, because i get really tired of typing the same boilerplate for each story, but can be used either way.