Skip to content

Node.js NestJS generator (TypeScript) #35

@mathieusouflis

Description

@mathieusouflis

Problem statement

NestJS is the most widely used opinionated Node.js framework. Developers starting a NestJS project still need to manually configure TypeScript, linting, architecture, and the module/controller/service structure.

Proposed solution

Implement NodeNestJSGenerator in generators/typescript/nestjs.go.

  • Name(): "node-nestjs"
  • Language(): "typescript"
  • Modules(): ["nestjs"]

Apply() generates a NestJS application with:

  • package.json (NestJS + TypeScript dependencies)
  • tsconfig.json, nest-cli.json
  • src/app.module.ts, src/main.ts
  • File structure adapted to spec.Config.Architecture

Commands: new module <name>, new controller <name>, new service <name>

Alternatives considered

Use the NestJS CLI under the hood (nest new). Rejected — dot generates deterministic files from templates; executing external CLIs adds a runtime dependency.

Area

Core

Additional context

Uses static composition with TypeScript backend architecture generators. Depends on: TypeScript architecture generators.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions