/clegen

Generate modules with clean architecture for Typescript projects

Primary LanguageJavaScript


Clegen 🧩

Generate modules with clean code for Typescript projects

What is Clegen?

Clegen (clean generator) is a command-line tool designed to scaffold clean code modules in TypeScript projects.

Installation

Since clegen is not a package, you can use it directly with npx:

npx clegen@latest

Usage

To use clegen, simply run the following command and follow the prompts to generate the scaffolding for a new module:

npx clegen@latest

The tool will guide you through the process of creating a new module, such as "User", and generate the necessary directory structure including domain, application, and infrastructure layers.

Example

Here's an example of how you can use clegen to create a new "Product" module:

CLI flow

And the result:

Result

Contributing

Contributions to clegen are welcome! If you encounter any issues or have suggestions for improvements, please feel free to submit pull requests or open issues on the GitHub repository.

License

This project is licensed under the MIT License.