caserita-generator
v1.6.5
Published
Generate templates for usign in backend and frontend
Readme
What is Caserita Generator?
Caserita Generator (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 caserita-generator@latestUsage
To use clegen, simply run the following command and follow the prompts to generate the scaffolding for a new module:
npx caserita-generator@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.
Example
Here's an example of how you can use clegen to create a new "Product" module:

And the 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.
Publish generator
To publish this package to npm, first bump the version
##Increase a version path (1.0.0) -> (1.0.1)
$ npm version patch
##Increase a minor version (1.0.0) -> (1.1.0)
$ npm version minor
##Increase a major version (1.0.0) -> (2.0.0)
$ npm version major
##Increase a specific version (1.0.0) -> (3.1.1)
$ npm version <version>then we publish to npm
##publish the package to npm
$ npm publish