dryvPacks

@dryv/nestjsv0.9.0

NestJS feature controllers, services and modules for HTTP operations.

NestJS Backend AdapterBackendInjectPublished 7 days ago2 downloads

dryv pack add @dryv/nestjs

Changelog

0.9.0

  • Merge the service contract and implementation into one file; drop the feature and root barrels.
  • Write specs to test/test-app and the vitest config to package output slots; operation.implementation becomes optional.

0.8.0

  • Feature folders move to <group>/features/<feature>/.

0.7.0

  • Add the optional module.provider operation slot. Feature modules import and register provider artifacts only for operations belonging to that feature.
  • Extend the executable fixtures to inject an operation-scoped module provider through the complete generated application.

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.