1.0.7 • Published 7 months ago
create-redux-toolkit-template v1.0.7
create-redux-toolkit-template
CLI tool for generating Redux Toolkit structure with TypeScript
Installation
npm install -g create-redux-toolkit-template
Usage
create-redux-toolkit
Or with options:
create-redux-toolkit --directory ./src --slice user
Features
- Interactive CLI
- TypeScript support
- Customizable directory structure
- Automatic file generation
- Async actions support
- Component templates
Options
-d, --directory
: Target directory (default: ./src)-s, --slice
: Slice name-v, --version
: Display version number-h, --help
: Display help
Generated Structure
src/
├── redux/
│ ├── slices/
│ │ └── userSlice.ts
│ ├── store.ts
│ ├── hooks.ts
│ └── types.ts
└── components/
└── UserComponent.tsx
License
MIT