rkx-cli
v1.0.1
Published
rkx - React toolKit eXtend: CLI para scaffolding de proyectos React, Vite, Next y más.
Maintainers
Readme
rkx-cli React toolKit eXtend
rkx (React toolKit eXtend) is a lightweight and extensible CLI for bootstrapping and scaling projects in React, Vite, and Next.js.
It includes generators for modules, components, hooks, enums, and types.
🚀 Installation
Global installation (recommended):
npm install -g rkx-cli
# or with yarn
yarn global add rkx-cliVerify installation:
rkx --help📦 Available Commands
Create projects
rkx create-react-vite my-appScaffolds a new project based on React + Vite with updated dependencies.
Create modules
rkx create-module billingGenerates a module in src/modules/billing from a template.
Create components
rkx create-component Button
rkx create-component Card -m dashboard- By default components are created in
src/core/components. - With
--module(-m), they are added inside the specified module.
Create hooks
rkx create-hook useAuth
rkx create-hook useGoogleMaps -m mapsGenerates a hook in src/core/hooks or inside the specified module, along with its type file.
Create enums and types
rkx create-enum Status
rkx create-type UserGenerates enum and type files under src/core/types.
⚙️ Common Options
--force→ Overwrite if the file already exists.--path <path>→ Provide a custom path.--template <name>→ Use a different template than the default.--debug→ Print debug information.
📝 Quick Examples
# New React+Vite project
rkx create-react-vite my-dashboard
# New users module
rkx create-module users
# New component inside users module
rkx create-component UserCard -m users
# New global hook
rkx create-hook useTheme
# New enum
rkx create-enum Status
# New type
rkx create-type User📚 Roadmap
- [x] React+Vite project scaffolding
- [x] Module, component, and hook generators
- [x] Enum and type generators
- [ ] Next.js project scaffolding
- [ ] Customizable templates
- [ ] Third-party plugins/extensions
🛠 Contributing
- Fork the repo
- Create a branch
feature/new-feature - Submit a PR 🎉
📄 License
This project is licensed under the MIT license.
