react-ng-cli
v0.0.6
Published
React CLI, inspired by Angular CLI
Downloads
10
Readme
react-cli
React CLI, inspired by Angular CLI
Table of contents generated with markdown-toc
Feature Requests
If you have any requests you'd like, or want or need guidance, please open an issue.
Motivation
React doesn't have a CLI. I think angular did a good job with their CLI. However, if you don't want to use Angular, You're out of luck. This is a solution for tools that I use.
API
react generate component
Generates a component. If src
folder exists, it will be place in there.
Flags
- -f = Generates a function component
- -c = Generates a class component
Syntax
react generate component [path/to/YourComponent] [-f | -c]
Example
react generate component path/to/My-Component -f
# or
react g c path/to/My-Component -f
react generate service
Flags
No flags available.
Syntax
react generate service [path/to/YourComponent]
Example
react generate service path/to/YourComponent
# or
react g s path/to/YourComponent
react config init
Initializes a configuration file. If no file is created, the default configuration is used.
Flags
No flags available.
Syntax
react config init
Example
react config init
# or
react c i