Clegen (clean generator) is a command-line tool designed to scaffold clean code modules in TypeScript projects.
Since clegen is not a package, you can use it directly with npx:
npx clegen@latestTo use clegen, simply run the following command and follow the prompts to generate the scaffolding for a new module:
npx clegen@latestThe 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.
Here's an example of how you can use clegen to create a new "Product" module:
And the result:
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.
This project is licensed under the MIT License.

