Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.93 KB

README.md

File metadata and controls

65 lines (43 loc) · 1.93 KB

nest-schematics

npm@latest test code style: prettier semantic-release

NestJS schematics

Requirements

  • Node.js v18 LTS or later
  • Yarn

Install

yarn add -D @byndyusoft/nest-schematics

Usage

NestJS CLI

Use @byndyusoft/nest-schematics instead of @nestjs/schematics in nest-cli.json:

-  "collection": "@nestjs/schematics",
+  "collection": "@byndyusoft/nest-schematics",

Generate new application

corepack yarn@stable dlx -p @byndyusoft/nest-schematics -p @nestjs/cli nest g app -c @byndyusoft/nest-schematics app-name

Generate new application locally

corepack yarn@stable dlx -p @byndyusoft/nest-schematics@portal:/path/to/nest-schematics -p @nestjs/cli nest g app -c @byndyusoft/nest-schematics app-name

Add TypeOrm

yarn nest g typeorm

Add new schema

  • The "Angular schematics" is taken as a basis
  • Add a new schema by analogy and register it in collection.json

Maintainers

License

This repository is released under version 2.0 of the Apache License.