@lezhin/react-generate-component
v0.0.4
Published
[![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
Downloads
1
Readme
React Generate Component
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!');
});