diq
v4.0.3
Published
CLI generator of [Redux dux files](https://github.com/erikras/ducks-modular-redux) and React components.
Downloads
7
Readme
DIQ – DUX IQ
CLI generator of Redux dux files and React components.
Tldr; install it with:
npm install diq -g
Go to your project's root folder and add .diq file:
touch .diq
Specify folders in .diq file like below:
{
"duxFolder": "src/dux",
"modulesFolder": "src/modules",
"commonComponentsFolder": "src/components"
}
and run DIQ:
diq
Redux
With DIQ you can generate boilerplate for separated dux module:
dux_folder
... | dux_module_1
... ... | dux file
... ... | api file
... ... | types file
... | dux_module_2
... | dux_module_3
Just type diq
in your project root and follow instructions.
React
With diq you can create React component as function or class. You can add stylus file for styling and specify most used methods.