@nest-arch/tui 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +7 -0
  2. package/dist/cli.js +1 -1
  3. package/dist/{constants-BbJ71cex.js → constants-DBtqeoTh.js} +1 -1
  4. package/dist/index.js +97 -79
  5. package/dist/templates/base/.env.example.hbs +36 -0
  6. package/dist/templates/base/.env.hbs +8 -1
  7. package/dist/templates/base/README.md.hbs +1 -1
  8. package/dist/templates/base/pnpm-workspace.yaml.hbs +9 -0
  9. package/dist/templates/base/src/app.module.ts.hbs +21 -1
  10. package/dist/templates/base/src/database/db.module.ts.hbs +2 -4
  11. package/dist/templates/base/src/main.ts.hbs +11 -1
  12. package/dist/templates/extras/swagger/create-docs.ts.hbs +81 -25
  13. package/dist/templates/feature/graphql/src/graphql/dto/create-todo.input.ts.hbs +13 -0
  14. package/dist/templates/feature/graphql/src/graphql/dto/update-todo.input.ts.hbs +8 -0
  15. package/dist/templates/feature/graphql/src/graphql/graphql.module.ts.hbs +33 -0
  16. package/dist/templates/feature/graphql/src/graphql/models/base.model.ts.hbs +13 -0
  17. package/dist/templates/feature/graphql/src/graphql/models/pagination.model.ts.hbs +27 -0
  18. package/dist/templates/feature/graphql/src/graphql/models/todo.model.ts.hbs +23 -0
  19. package/dist/templates/feature/graphql/src/graphql/models/user.model.ts.hbs +34 -0
  20. package/dist/templates/feature/graphql/src/graphql/orm/drizzle/drizzle-graphql.module.ts.hbs +42 -0
  21. package/dist/templates/feature/graphql/src/graphql/orm/typeorm/typeorm-graphql-relations.helper.ts.hbs +23 -0
  22. package/dist/templates/feature/graphql/src/graphql/resolvers/base.resolver.ts.hbs +50 -0
  23. package/dist/templates/feature/graphql/src/graphql/resolvers/todo.resolver.ts.hbs +126 -0
  24. package/dist/templates/feature/rest/todo-example/src/api/todo/dto/create-todo.dto.ts.hbs +13 -0
  25. package/dist/templates/feature/rest/todo-example/src/api/todo/dto/update-todo.dto.ts.hbs +13 -0
  26. package/dist/templates/feature/rest/todo-example/src/api/todo/todo.controller.ts.hbs +171 -0
  27. package/dist/templates/feature/rest/todo-example/src/api/todo/todo.module.ts.hbs +24 -0
  28. package/dist/templates/feature/rest/todo-example/src/api/todo/todo.router.ts.hbs +76 -0
  29. package/dist/templates/feature/rest/todo-example/src/api/todo/todo.service.ts.hbs +145 -0
  30. package/dist/templates/monorepo/apps/api-gateway/src/app.module.ts.hbs +21 -1
  31. package/dist/templates/monorepo/apps/api-gateway/src/main.ts.hbs +62 -54
  32. package/dist/templates/monorepo/feature/graphql/src/graphql/dto/create-todo.input.ts.hbs +13 -0
  33. package/dist/templates/monorepo/feature/graphql/src/graphql/dto/update-todo.input.ts.hbs +8 -0
  34. package/dist/templates/monorepo/feature/graphql/src/graphql/graphql.module.ts.hbs +33 -0
  35. package/dist/templates/monorepo/feature/graphql/src/graphql/models/base.model.ts.hbs +13 -0
  36. package/dist/templates/monorepo/feature/graphql/src/graphql/models/todo.model.ts.hbs +23 -0
  37. package/dist/templates/monorepo/feature/graphql/src/graphql/models/user.model.ts.hbs +34 -0
  38. package/dist/templates/monorepo/feature/graphql/src/graphql/orm/drizzle/drizzle-graphql.module.ts.hbs +16 -0
  39. package/dist/templates/monorepo/feature/graphql/src/graphql/orm/prisma/prisma-graphql.service.ts.hbs +9 -0
  40. package/dist/templates/monorepo/feature/graphql/src/graphql/orm/typeorm/typeorm-graphql-relations.helper.ts.hbs +23 -0
  41. package/dist/templates/monorepo/feature/graphql/src/graphql/resolvers/todo.resolver.ts.hbs +122 -0
  42. package/dist/templates/monorepo/packages/env/src/api-gateway.ts.hbs +10 -0
  43. package/dist/templates/monorepo/root/README.md.hbs +1 -1
  44. package/dist/templates/monorepo/root/pnpm-workspace.yaml.hbs +9 -0
  45. package/dist/templates/single-project/architecture/nest-api/.env.hbs +25 -1
  46. package/dist/templates/single-project/architecture/nest-api/pnpm-workspace.yaml.hbs +9 -0
  47. package/dist/templates/single-project/architecture/nest-api/src/main.ts.hbs +67 -55
  48. package/dist/templates/single-project/architecture/nest-gateway/src/main.ts.hbs +62 -54
  49. package/dist/templates/single-project/architecture/nest-microservice/.env.hbs +3 -0
  50. package/dist/templates/single-project/architecture/nest-microservice/src/main.ts.hbs +62 -54
  51. package/dist/templates/single-project/shared/config/env.ts.hbs +10 -0
  52. package/package.json +4 -4
package/README.md CHANGED
@@ -1,7 +1,14 @@
1
1
  # @nest-arch/tui
2
2
 
3
+ > **⚠️ Early Version** — This project is very early-stage and not yet ready for production use. Expect breaking changes, incomplete features, and rough edges.
4
+
3
5
  Interactive terminal UI for generating NestJS projects.
4
6
 
7
+ ## Known Limitations
8
+
9
+ - **`@nestjs/graphql`** does not yet support NestJS v12. If you select GraphQL, the generated project may not work with the latest NestJS version.
10
+ - **NestJS tRPC** has a pending PR for NestJS v12 compatibility, including support for NestJS's new ESM module resolution. In the meantime, the tRPC integration includes scripts to help bridge the gap. Track the PR for updates on approval.
11
+
5
12
  ## Installation
6
13
 
7
14
  ```bash
package/dist/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const e=new Set(["-v","--v","--version"]);if(process.argv[2]&&e.has(process.argv[2])){const{APP_VERSION:s}=await import("./constants-BbJ71cex.js");console.log(`nest-arch/${s.replace(/^v/u,"")}`),process.exit(0)}await import("./index.js");
2
+ const e=new Set(["-v","--v","--version"]);if(process.argv[2]&&e.has(process.argv[2])){const{APP_VERSION:s}=await import("./constants-DBtqeoTh.js");console.log(`nest-arch/${s.replace(/^v/u,"")}`),process.exit(0)}await import("./index.js");
@@ -1 +1 @@
1
- const O="Nest Arch",A="v0.2.0",t="The comfy way to build NestJS projects",o="#e54545",R="#A0A0A0",c="#6B6B6B",s="#E5E5E5",C="#61AFEF",E="#3A3A3A",_="#7FD99A",n="#E8C468",L="#e96142ff";export{O as APP_NAME,t as APP_TAGLINE,A as APP_VERSION,C as COLOR_ACCENT,R as COLOR_DIM,c as COLOR_DIMMER,E as COLOR_DIVIDER,s as COLOR_FG,o as COLOR_RED,_ as COLOR_SUCCESS,n as COLOR_WARM,L as COLOR_WARM_SECONDARY};
1
+ const O="Nest Arch",A="v0.2.2",t="The comfy way to build NestJS projects",o="#e54545",R="#A0A0A0",c="#6B6B6B",s="#E5E5E5",C="#61AFEF",E="#3A3A3A",_="#7FD99A",n="#E8C468",L="#e96142ff";export{O as APP_NAME,t as APP_TAGLINE,A as APP_VERSION,C as COLOR_ACCENT,R as COLOR_DIM,c as COLOR_DIMMER,E as COLOR_DIVIDER,s as COLOR_FG,o as COLOR_RED,_ as COLOR_SUCCESS,n as COLOR_WARM,L as COLOR_WARM_SECONDARY};