Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/byndyusoft/nest-schematics
NestJS schematics
https://github.com/byndyusoft/nest-schematics
nestjs nodejs schematics typescript
Last synced: 17 days ago
JSON representation
NestJS schematics
- Host: GitHub
- URL: https://github.com/byndyusoft/nest-schematics
- Owner: Byndyusoft
- License: apache-2.0
- Created: 2023-05-18T11:23:55.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-21T14:37:18.000Z (9 months ago)
- Last Synced: 2024-04-23T20:17:27.481Z (9 months ago)
- Topics: nestjs, nodejs, schematics, typescript
- Language: TypeScript
- Homepage:
- Size: 3.69 MB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nest-schematics
[![npm@latest](https://img.shields.io/npm/v/@byndyusoft/nest-schematics/latest.svg)](https://www.npmjs.com/package/@byndyusoft/nest-schematics)
[![test](https://github.com/Byndyusoft/nest-schematics/actions/workflows/test.yaml/badge.svg?branch=master)](https://github.com/Byndyusoft/nest-schematics/actions/workflows/test.yaml)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)NestJS schematics
## Requirements
- Node.js v18 LTS or later
- Yarn## Install
```bash
yarn add -D @byndyusoft/nest-schematics
```## Usage
### NestJS CLI
Use `@byndyusoft/nest-schematics` instead of `@nestjs/schematics` in `nest-cli.json`:
```diff
- "collection": "@nestjs/schematics",
+ "collection": "@byndyusoft/nest-schematics",
```### Generate new application
```bash
corepack yarn@stable dlx -p @byndyusoft/nest-schematics -p @nestjs/cli nest g app -c @byndyusoft/nest-schematics app-name
```### Generate new application locally
```bash
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
```bash
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](./src/collection.json)## Maintainers
- [@Byndyusoft/owners](https://github.com/orgs/Byndyusoft/teams/owners) <>
- [@Byndyusoft/team](https://github.com/orgs/Byndyusoft/teams/team)
- [@KillWolfVlad](https://github.com/KillWolfVlad)
- [@argus-xd](https://github.com/argus-xd)## License
This repository is released under version 2.0 of the
[Apache License](https://www.apache.org/licenses/LICENSE-2.0).