1.0.1 • Published 2 years ago
cmpgen v1.0.1
Cmpgen | CLI to genarate React.js Compontns easily
Official Documentation: https://devnops.tech/cmpgen/
Installation
npm install cmpgen -g
Usage
cmpgen ComponentName [options]
Available Options
- -h, --help: Show this help message and exit.
- -v, --version: Show version and exit.
- -c, --css: Type of stylesheet valid values: css, scss, sass.
- -i, --index: If index.js file is genarated.
Config file
Make sure you have a config file in your project root directory. Config file name should be config.cmpgen.json.
{
"dir":"./project/",
"index":false,
"css":"sass"
}
The dir option sets the directory where the component will be created.