This is a NodeJS CLI helps you quickly generate your React components either as a JavaScript or TypeScript file. This is really helpful if you work a lot with component libraries and want to save time from manually creating these files by hand.
npx component-scaffolder
For component scaffolder to work properly, it assumes that you have a src
folder and components
folder in your current working directory.
Follow the prompt that appears and select the type of files you want your components to be in (either JavaScript/TypeScript), and input the name of your component
Component scaffolder includes support for styling with Styled Component, TypeScript types, tests, and Storybook.
- Component.js/ts
- Component.styles.js/ts (for styling with Styled Components)
- Component.types.js/ts (for typescript types)
- Component.test.jsx/tsx (test files)
- Component.stories.js/ts (storybookJS files)
MIT © Component-Scaffolder
This project would not have been possible without HarveyD whose initial templates helped start this whole experiment