dryvPacks

@dryv/nestjsv0.6.0

NestJS feature controllers, services and modules for HTTP operations.

NestJS Backend AdapterBackendInjectPublished 25 days ago2 downloads

dryv pack add @dryv/nestjs

You are viewing version 0.6.0. The latest release is 0.9.0.

1.4 KBRaw ↗

Changelog

0.5.0

  • Generate Vitest specs: <feature>.controller.e2e.spec.ts (routing, input binding, validation, status codes and response passthrough per operation, with the implementation mocked) and app.e2e.spec.ts (the assembled AppModule serves every contract route).
  • server/http.options.ts holds the global validation options; AppModule registers them as APP_PIPE and the specs use the same options.
  • Scaffold vitest.config.ts (SWC, for NestJS decorator metadata). Optional need schema.examples supplies valid payloads.

0.4.0

  • <feature>.service.ts is an abstract contract; <feature>.module.ts binds it to the project's implementation (operation.implementation) with satisfies Type<…> and registers per-operation use cases (operation.usecase).
  • Add <group>/<group>.module.ts and app.module.ts (written to the app output slot); scaffold database/database.module.ts, imported only when generated entities are used.

0.3.0

  • Split each feature into <feature>.controller.ts, <feature>.service.ts and <feature>.module.ts, following NestJS conventions; the module remains the operation.server provider.
  • Move the cookie parameter decorator to common/server/http/cookie.decorator.ts.
  • Remove the unfinished feature API contract template (its [email protected] dependency cannot be installed).

0.1.0

  • First release in dryvcode/packs, copied from the Dryv repository's example nestjs pack.