create-redux-toolkit-template
v1.0.7
Published
CLI tool for generating Redux Toolkit structure with TypeScript
Maintainers
Readme
create-redux-toolkit-template
CLI tool for generating Redux Toolkit structure with TypeScript
Installation
npm install -g create-redux-toolkit-templateUsage
create-redux-toolkitOr with options:
create-redux-toolkit --directory ./src --slice userFeatures
- 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.tsxLicense
MIT
