mvn-react-generate-cli
v1.0.4
Published
A CLI to generate template for our Reactjs boilerplate
Downloads
30
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-cliAlternatively, you can install npx and run npx mvn-react-generate-cli <command>.
Usage
mvn-react-gen -hGenerating 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/MyNewComponentGenerating 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 productsIn 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 --crudLicense
[MIT]
