@lezhin/react-generate-component
[![Build Status](https://travis-ci.org/lezhin/react-generate-component.svg?branch=master)](https://travis-ci.org/lezhin/react-generate-component) [![codecov](https://codecov.io/gh/lezhin/react-generate-component/branch/master/graph/badge.svg)](https://cod
Last updated 3 years ago by lezhin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @lezhin/react-generate-component 
SYNC missed versions from official npm registry.

React Generate Component

Build Status codecov

This is a tool to generate React Component files.

Installation

$ npm install -g @lezhin/react-generate-component

Usage

CLI

Usage: rgc [options] <name ...>


Options:

-V, --version        output the version number
-c, --config <path>  set a custom path to look for a config file
-o, --override       set a allow files to override
-h, --help           output usage information

Node.js

const rgc = require('@lezhin/react-generate-component').generate;

const componentNames = ['hello', 'world'];
const customConfig = {};
const allowOverride = false;

rgc(componentNames, customConfig, allowOverride).then(() => {
    console.log('Generated!');
});

Current Tags

  • 0.0.4                                ...           latest (3 years ago)

4 Versions

  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 3
Dependencies (7)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |