0.0.1 • Published 5 months ago

@soorajk1/schematics-test v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Custom Schematics

Custom schematics can streamline the process of generating code and adding features to your Nest.js project. Follow these steps to use your custom schematics:

  1. Initialize Your Nest Project: Make sure you have a Nest.js project set up.

  2. Install the Custom Schematics Package: In your project's root directory, install the custom schematics package by running the following command:

    npm install @soorajk1/schematics
  3. Modify the contents of your nest-cli.json file to the following

    {
      "$schema": "https://json.schemastore.org/nest-cli",
      "collection": "@soorajk1/schematics",
      "sourceRoot": "src",
      "compilerOptions": {
        "deleteOutDir": true
      }
    }

Now, You can use commands like nest generate like normal, along with arguments like nest g service-prisma prisma to generate custom service