react-ng-cli
React CLI, inspired by Angular CLI
Last updated 9 months ago by waynevanson .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install react-ng-cli -g
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.6                                ...           latest (9 months ago)

6 Versions

  • 0.0.6                                ...           9 months ago
  • 0.0.5                                ...           9 months ago
  • 0.0.4                                ...           9 months ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |