React component generator
npm install gc-reactgc-react is a cli tool to generate react components quickly. You can use one of the templates or add your own to cut down
on the boilerplate typing time and to reduce typos.
$ npm install gc-react --save-dev
$ yarn add gc-react -D
// package.json"scripts":{
...
"gc":"gc"}
$ npm install -g gc-react
#### Make sure to replace 'component_name' with the name of the component you want to create.
$ yarn gc create 'component_name'
$ npm run gc create 'component_name'
$ gc create 'component_name'
#### Make sure to replace 'component_name' with the name of the component you want to create.
$ yarn gc remove 'component_name'
$ npm run gc remove 'component_name'
$ gc remove 'component_name'
#### You can specify options with command line arguments and/or by creating a gc-react.config.json file at the root of your project.
#### Typing --template yourtemplate all the time gets tedious, so you should at least create the file and specify the template.
// filename : gc-react.config.json{
"template" : 'fireship',
}
$ gc create navbar --template fireship
// filename : gc-react.config.json{
"dryRun": boolean,
"template" : string,
"quiet: boolean
}