Skip to content

stanislawsztrajt/generate-react-component-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to generate-react-component-cli 👋

Version Documentation Maintenance License: MIT

Quickly create a react component with command line

Install

npm i -g generate-react-component-cli

Usage

grccli

After typing "grccli" the language selection will be displayed(the language selection is one-time only) after that the application only asks you what you want the componoent to be called and where you want it to be located. After that the component will be created!

It will generate (E.g for component name task-item and path src/features):
Folder: src/features/task-item
File: src/features/task/task-item.tsx
File: src/features/task/use-task-item.ts (or Task.hook.ts, it depends if folder and file name is kebab case or no)
File: src/features/task/task-item.test.tsx
File: src/features/task/index.ts

This is really easy to edit, 3 files
helpers.js - helpers functions
contents.js - contents files
cli.js - application

Author

👤 Stanisław Sztrajt

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2022 Stanisław Sztrajt.
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator