๐ง plop generator react component
June 21, 2021 ยท View on GitHub
A plop generator for react components.
๐ฆ Installation
This package is hosted on npm.
npm install --save-dev @bradgarropy/plop-generator-react-component
๐ฅ Usage
First, be sure you have plop installed. Then, add the following line to your plopfile.js.
plop.load("@bradgarropy/plop-generator-react-component")
Now you'll have access to the component generator as shown below.
plop component
The component generator scaffolds a component, including tests and an associated css module. The resulting directory looks like this for a component named Component.
src
โโโ components
โโโ Component
โโโ index.ts
โโโ Component.tsx
โโโ Component.test.tsx
โโโ Component.module.css
โ Questions
๐ report bugs by filing issues
๐ข provide feedback with issues or on twitter
๐๐ผโโ๏ธ use my ama or twitter to ask any other questions
โจ contributors
Brad Garropy ๐ป ๐ โ ๏ธ ๐ |