1.0.1 • Published 12 months ago

@bfukumori/codegen v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

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:

npm install -g @bfukumori/codegen

Usage

Command

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

skeleton -c product -c person -c colors

The generated directory and file structure will be similar to:

.
├── src
│   ├── factory
│   │   ├── productFactory.js
│   │   ├── personFactory.js
│   │   └── colorsFactory.js
│   ├── repository
│   │   ├── productRepository.js
│   │   ├── personRepository.js
│   │   └── colorsRepository.js
│   └── service
│       ├── productService.js
│       ├── personService.js
│       └── colorsService.js
1.0.1

12 months ago

1.0.0

12 months ago