5.0.30 • Published 9 months ago

@webundsoehne/nx-nest v5.0.30

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

@webundsoehne/nx-nest

Version Downloads/week Dependencies semantic-release

Description

This package includes @nrwl/nx schematics to generate nest.js projects.


Schematics

Application

Application schematic creates a @nestjs application. Run the application schematic with its name or alias of app to follow through an interactive menu.

The first argument passed in to nx g @webundsoehne/nx-nest:app ${APP_NAME} will be the application name itself. This application will be created under the folder apps/ with the given name.

Follow through the interactive menu to generate a application with the components you need.

Application will use ts-node-dev for development and tsc for distribution.

To change the setup of the application and add/remove components in to it just rerun the command and follow through the prompt. Application is memoryful therefore it will remember previous choices and try to diff-merge new components in to it without explicitly deleting your code. If merge for a file fails, it will take a backup of the current file.

Component

To generate new components after an application has been created, run the component schematic with its name or alias of co.

The first argument passed in to nx g @webundsoehne/nx-nest:co ${APP_NAME} ${COMPONENT_NAME} is the application name and the second is the component name.

Follow through the prompts, where it will guide you with only available components that can be added to the application due to memoryful operation.

It will place the new component inside respective modules/ folder under the component folder and regenerate index.ts file to make it automatically imported to the main application. Generating index.ts only consists of adding the missing lines in to the file so nothing is allowed to be deleted from the current file.

Microservice Provider

To generate a microservice-provider that utilizes the @webundsoehne/nestjs-util MicroserviceProviderModule, run the microservice-provider schematic with its name or alias of msp.

This will take no argument and will auto detect applications that are created with this plugin and have microservice-server selected as a component. If it fails to find any services it will run in mock mode for integration to legacy applications.

This will create a new library called microservice-provider where the applications that utilize microservice-client to connect through. It will house the generic message queue names, patterns and request-response map for completion.

Backend Interfaces

Generates a common backend-interfaces library that can be used by the nest applications.

This is also generated when the extension of backend interfaces is selected for the application. If the defined nestjs applications have a database adapter defined to them, it will auto generate the entities folders to responding adapter automatically.

Generator

A basic generator that is usuable for generating a single file sets as in the case of angular or nestjs command line interfaces. This can scaffold a single component in a folder easily.

Notes

  • Currently GraphQL does not play real well with fastify3 especially with playground, therefore packages depend on fastify like @nestjs/fastify-adapter, fastify, fastify-swagger is at a older version that supports fastify2.
5.0.30

9 months ago

5.0.25

10 months ago

5.0.26

10 months ago

5.0.27

10 months ago

5.0.28

10 months ago

5.0.29

10 months ago

5.0.22

1 year ago

5.0.23

1 year ago

5.0.24

1 year ago

5.0.21

1 year ago

5.0.20

1 year ago

5.0.19

1 year ago

5.0.18

1 year ago

5.0.17

1 year ago

5.0.16

1 year ago

5.0.15

1 year ago

5.0.14

1 year ago

5.0.13

1 year ago

5.0.12

1 year ago

5.0.11

1 year ago

5.0.10

1 year ago

5.0.9

2 years ago

5.0.8

2 years ago

5.0.7

2 years ago

5.0.6

2 years ago

5.0.5

2 years ago

5.0.4

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.2-beta.1

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

5.0.0-beta.7

2 years ago

5.0.0-beta.6

2 years ago