1.0.10 • Published 12 months ago
@rohilaharsh/wgen v1.0.10
wgen
File generator for React.js app based on TypeScript.
Note: This will work only for Unix-like shells (bash, zsh etc).
Whats with the name "wgen?
wgen is just easy to type and seem to be available name (having "gen" in its name)
Usage
Install globally with the package manager you are using.
For npm use
npm i -g @rohilaharsh/wgen
Then you can use below commands in your React project
wgen c <ComponentName>
- will create component under
src/components
- will create component under
wgen c <ComponentName> -f <feature-name>
- will create component under
src/features/<feature-name>/components
- will create component under
wgen s <service-name> -f <feature-name>
- will create service under
src/features/<feature-name>/services
- will create service under
wgen rs <slice-name>
- will create redux-slice under
src/redux/slices/<slice-name>
- will create redux-slice under