Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bfukumori/codegen-cli
CLI to generate code from templates
https://github.com/bfukumori/codegen-cli
cli jsexpert node
Last synced: 28 days ago
JSON representation
CLI to generate code from templates
- Host: GitHub
- URL: https://github.com/bfukumori/codegen-cli
- Owner: bfukumori
- Created: 2024-07-31T03:57:46.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-31T05:36:05.000Z (5 months ago)
- Last Synced: 2024-11-06T20:11:59.580Z (about 2 months ago)
- Topics: cli, jsexpert, node
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@bfukumori/codegen
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Codegen CLI
A command-line tool to generate an initial skeleton for a project with specified components and layers.
## Installation
You can install the package globally using npm:
```bash
npm install -g @bfukumori/codegen
```## Usage
### Command
```bash
skeleton# You can use --help flag for more information
```### Options
- `--component-name`, `-c`: The name(s) of the component(s) to generate. This option is required and accepts multiple values.
- `--default-folder`, `-f`: The default folder where the project skeleton will be generated. The default value is `src`.## Directory Structure
```bash
skeleton -c product -c person -c colors
```The generated directory and file structure will be similar to:
```plaintext
.
├── src
│ ├── factory
│ │ ├── productFactory.js
│ │ ├── personFactory.js
│ │ └── colorsFactory.js
│ ├── repository
│ │ ├── productRepository.js
│ │ ├── personRepository.js
│ │ └── colorsRepository.js
│ └── service
│ ├── productService.js
│ ├── personService.js
│ └── colorsService.js
```