Skip to content

stanislawsztrajt/generate-react-components-export-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to generate-react-components-export-cli 👋

Version Documentation License: MIT

Quickly create a react components export with command line

Install

npm i -g generate-react-components-export-cli

Usage

grcecli

After that the application will ask in which path it should create the file index.ts and that's all (the application will create correctly only export folders)

It will generate (E.g for path src/features/user and folders user-form, user-list, user-details):
File: src/features/user/index.ts With all imports exports')
After that you can import like: import { UserForm, UserList, UserDetails } from "src/features/user
Instead of import UserForm from "src/features/user/user-form etc...
If index.ts exists it will be overwritten

Author

👤 Stanisław Sztrajt

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!


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