@hqro/create-react-component
Command line interface to initialize empty ES8 React & React Native components
Last updated 2 years ago by hqro .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @hqro/create-react-component 
SYNC missed versions from official npm registry.

create-react-component

Command line interface to initialize empty ES8 React and React Native components

Installation

npm install --global @hqro/create-react-component

Usage information

  Usage: crc [options]


  Options:

    -V, --version       Output the version number
    -n, --name <name>   Component name (default: Test)
    -d, --dest <path>   Component destination (default: current path)
    -L, --stateless     Apply stateless component template
    -F, --statefull     Apply statefull component template
    -X, --redux         Connect your component with Redux
    -W, --web           Create React Web component
    -N, --native        Create React Native component
    -C, --css           Create CSS stylesheet
    -S, --scss          Create SCSS stylesheet
    -h, --help          Output usage information

Example

Generate a statefull component connected to the Redux store and using CSS stylesheet:

cd src/components
crc -n Test --web --css --statefull --redux

Output:

  Test
  ├── Test.js
  ├── Test.css
  └── index.js

Current Tags

  • 2.1.4                                ...           latest (2 years ago)

4 Versions

  • 2.1.4                                ...           2 years ago
  • 2.1.3                                ...           2 years ago
  • 2.1.2                                ...           2 years ago
  • 2.1.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 4
Last Month 6
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |