Solid NestJS CLI
Solid NestJS CLI is a command-line tool for generating modules in NestJS applications, with a focus on adhering to SOLID principles.
Installation
You can install Solid NestJS CLI globally using npm:
npm install -g solid-nestjs-cli
Goal
The goal of Solid NestJS CLI is to simplify the process of generating NestJS modules while promoting software design principles, specifically those of SOLID:
Single Responsibility Principle (SRP): Each module generated by Solid NestJS CLI is designed to have a single responsibility, ensuring a clear and maintainable codebase.
Open-Closed Principle (OCP): Modules created with Solid NestJS CLI are structured to be open for extension and closed for modification, allowing easy additions without altering existing code.
Liskov Substitution Principle (LSP): The generated modules conform to the LSP, making it easier to substitute modules without affecting system behavior.
Interface Segregation Principle (ISP): Solid NestJS CLI encourages the use of concise and specific interfaces to promote a more modular and maintainable codebase.
Dependency Inversion Principle (DIP): The CLI tool is designed to facilitate dependency injection and inversion, promoting a flexible and decoupled architecture.
Usage
To generate a module, run the following command:
solid-nestjs-cli generate-module moduleName
License
This project is licensed under the MIT License. See the LICENSE.md file for details.