@wisemen/ngen
v0.7.2
Published
A code generator for NestJS projects. Scaffold modules, controllers, use-cases, builders, and more with customizable templates.
Readme
Nestjs gen
Nestjs gen is a code generator for NestJS projects, designed to help you quickly scaffold modules, controllers, use-cases, and more, following best practices and conventions.
Features
- Generate modules, controllers, use-cases, builders, decorators, and more for NestJS projects
- Pluggable architecture using plop
- Customizable templates for rapid development
- Built-in support for e2e test scaffolding
- TypeScript-first
Getting Started
Usage
Run the generator from your project root:
pnpx @wisemen/ngenYou will be prompted to select a generator (module, use-case, builder, etc.) and provide the required information.
Project Structure
src/- Source code for the generatorgenerators/- Plop generators for different NestJS componentsbuilder/- Builder pattern utilitiesmanipulators/- Code manipulation utilitiesplop-generators/- Plop generator definitionsregistry/- Registry for available generatorsutils/- Utility functions
templates/- Handlebars templates for code generation
Customization
You can customize or extend the templates in the templates/ directory to fit your project's needs. Add your own generators or modify existing ones in src/generators/.
Development
Use pnpm test to run the code in this repository.
Contributing
Contributions are welcome! Please open issues or pull requests on GitHub.
License
MIT
Changelog
The changelog can be found here.
