1.0.6 • Published 6 years ago

lm-fend-react-cli v1.0.6

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Learning Map Front End CLI

CLI tool for React applications

Prerequisites

The CLI has dependencies that require the latest version of Node.

Table of Contents

Installation

BEFORE YOU INSTALL: please read the prerequisites

npm install -g lm-fend-react-cli

Usage

lm-fend help

Generating Components, Actions, Reducers, Fixtures and Interfaces

You can use the lm-fend create (or just lm-fend c) command to generate react files:

lm-fend create component new-component
lm-fend c component new-component

You can find all possible blueprints in the table below:

File typeUsage
Stateful Componentlm-fend create component new-component OR lm-fend create component new-component --mode=stateful
Functional Componentlm-fend create component new-component --mode=functional
Actionlm-fend create action new-action
Reducerlm-fend create reducer new-reducer
Interfacelm-fend create interface new-interface
Fixtureslm-fend create fixtures new-fixtures

Note:

  • components are generated in the path src/components.
  • actions are generated in the path src/actions.
  • reducers are generated in the path src/reducers.
  • fixtures are generated in the path src/fixtures.
  • interfaces are generated in the path src/interfaces.