compgen-cli
v1.0.3
Published
A CLI tool to create components quickly
Downloads
3
Maintainers
Readme
Compgen CLI
Compgen CLI is a command line tool for quickly creating components in JavaScript or TypeScript.
Description
Compgen CLI allows you to generate standardized components for your projects, including style files, React components, and export files.
Installation
To install Compgen CLI globally, execute the following command:
npm install -g /path/to/your/project
Usage
To create a new component, use the following command:
create [language]
Parameters:
<component-name>
: The name of the component you want to create.[language]
: Optional, specifyjs
(default) orts
for TypeScript.
Options:
--help: Displays help for the command.
Examples
Creating a JavaScript Component
Execute the command:
create header
This command will create a header
directory with the following files:
header.js
header.scss
index.js
Creating a TypeScript Component
Execute the command:
create header ts
This command will create a header
directory with the following files:
header.tsx
header.scss
index.ts
Contributions
If you would like to contribute to this project, please open an issue or a pull request.
License
This project is licensed under the ISC License.