mvn-react-generate-cli
v1.0.4
Published
A CLI to generate template for our Reactjs boilerplate
Downloads
3
Readme
MVN React Generate CLI
Prerequisites
CLI have dependencies that require Node 8.9 or higher.
Table of Contents
Installation
BEFORE YOU INSTALL: please read the prerequisites
Install Globally
npm install -g mvn-react-generate-cli
Alternatively, you can install npx and run npx mvn-react-generate-cli <command>
.
Usage
mvn-react-gen -h
Generating Components
You can use mvn-react-gen component
(or just mvn-react-gen c
) command to generate a component.
When you run a command with c
or component
it will auto generate to components
folder in boilerplate.
See the following example:
mvn-react-gen c atoms/MyNewComponent
mvn-react-gen c layouts/MyNewComponent
mvn-react-gen c molecules/MyNewComponent
Generating Features
You can use mvn-react-gen feature
(or just mvn-react-gen f
) command to generate a feature.
When you run a command with f
or feature
it will auto generate to features
folder in boilerplate.
See the following example:
mvn-react-gen f projects
mvn-react-gen f products
In the feature we can you an argument --crud
command to generate the feature with full screens for CRUD
See the following example:
mvn-react-gen f projects --crud
License
[MIT]