0.0.4 • Published 8 years ago

@lezhin/react-generate-component v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

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!');
});