This is a tool to generate React Component files.
$ npm install -g @lezhin/react-generate-component
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
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!');
});