1.0.10 • Published 1 year ago
create-r-component v1.0.10
create-r-component
Still make react component yourself? Stop it, bro\ Just install this awesome CLI app and create React component by one command in terminal. You can create, delete and customize component with literally one simple command.
Installing
$ npm install -g create-r-component
It's important to install it global
Usage
Create
To create new React component:
$ create-r-component [first component name] [second component name] ...
Customize
To customize future React component:
$ create-r-component -s
$ or
$ create-r-component --settings
Settings: IS_ADD_TEST - would you add test file to component
- yes
- no
default
CSS_PREPROCESSOR - css preprocessor would you want to use (you need install custom preprocessor previously)
- css
default
- scss
- sass
- less
COMPONENT_TYPE - type of component would you wand to use
- functional
default
- class
REACT_EXTENSION - extension of react file would you want to use
- js
- jsx
default
- tsx
Delete
To delete React component:
$ create-r-component -d [first component name] [second component name] ...
$ or
$ create-r-component --delete [first component name] [second component name] ...
Contact to me
Want to thank me, scold, ask, offer your idea?\ Write me a letter makson94021@gmail.com 📨