react-ng-cli

0.0.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-ng-cli

Weekly Downloads

8

Version

0.0.6

License

MIT

Unpacked Size

8.72 kB

Total Files

14

Last publish

Collaborators

  • waynevanson