rsb-gen
v2.5.1
Published
Automate react component creation with corresponding storybook and testing files with simple command.
Downloads
7
Maintainers
Readme
rsb-gen
Automate react component creation with a corresponding storybook component with a simple command. The below command creates the component in the project root.
npx rsb-gen ComponentNameComponent location
Specify the component path from the project root.
npx rsb-gen src/components/atoms/MainCardTest file (Optional)
Valid options are -c, --cypress, -j, --jest.
npx rsb-gen src/components/atoms/MainCard --cypressFiles
_.tsx
_.stories.tsx
_.test.tsx
_.index.tsTypescript
Right now, this package only generates typescript files.
Sample output

