@nest-arch/tui 0.4.5 → 0.5.0

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 (46) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/constants-DX5wiqrq.js +1 -0
  3. package/dist/index.js +158 -145
  4. package/dist/templates/addons/husky/noop-hook.hbs +2 -0
  5. package/dist/templates/addons/husky/pre-commit.hbs +1 -1
  6. package/dist/templates/base/.env.example.hbs +16 -2
  7. package/dist/templates/base/.env.hbs +16 -2
  8. package/dist/templates/base/README.md.hbs +23 -2
  9. package/dist/templates/base/pnpm-workspace.yaml.hbs +9 -4
  10. package/dist/templates/base/prisma.config.ts.hbs +6 -0
  11. package/dist/templates/base/src/app.module.ts.hbs +6 -22
  12. package/dist/templates/base/src/database/adapters/interfaces/db-adapter.interface.ts.hbs +1 -1
  13. package/dist/templates/base/src/database/adapters/mongo/raw-mongo.adapter.ts.hbs +4 -2
  14. package/dist/templates/base/src/database/db.module.ts.hbs +30 -3
  15. package/dist/templates/base/src/database/db.service.ts.hbs +11 -8
  16. package/dist/templates/base/src/database/entities/todo.entity.ts.hbs +2 -2
  17. package/dist/templates/base/src/database/index.ts.hbs +2 -0
  18. package/dist/templates/base/src/database/orm/drizzle/schema.ts.hbs +48 -12
  19. package/dist/templates/base/src/database/orm/typeorm/data-source.ts.hbs +26 -10
  20. package/dist/templates/base/src/libs/middlewares/graphql-throttler.guard.ts.hbs +22 -0
  21. package/dist/templates/base/src/libs/trpc/inner.context.ts.hbs +2 -2
  22. package/dist/templates/base/src/main.ts.hbs +7 -6
  23. package/dist/templates/base/test/app.e2e-spec.ts.hbs +374 -198
  24. package/dist/templates/base/test/bootstrap.e2e-spec.ts.hbs +2 -2
  25. package/dist/templates/extras/docker/Dockerfile.hbs +8 -1
  26. package/dist/templates/extras/health/src/health/health.controller.ts.hbs +7 -1
  27. package/dist/templates/extras/swagger/create-docs.ts.hbs +6 -1
  28. package/dist/templates/feature/graphql/src/graphql/models/todo.model.ts.hbs +1 -1
  29. package/dist/templates/feature/graphql/src/graphql/resolvers/todo.resolver.ts.hbs +1 -1
  30. package/dist/templates/feature/rest/todo-example/src/api/todo/todo.controller.ts.hbs +80 -7
  31. package/dist/templates/feature/rest/todo-example/src/api/todo/todo.service.ts.hbs +181 -25
  32. package/dist/templates/monorepo/apps/api-gateway/src/main.ts.hbs +10 -9
  33. package/dist/templates/monorepo/root/README.md.hbs +8 -13
  34. package/dist/templates/single-project/architecture/nest-api/.env.hbs +15 -2
  35. package/dist/templates/single-project/architecture/nest-api/pnpm-workspace.yaml.hbs +6 -0
  36. package/dist/templates/single-project/architecture/nest-api/src/main.ts.hbs +10 -9
  37. package/dist/templates/single-project/architecture/nest-gateway/src/main.ts.hbs +10 -9
  38. package/dist/templates/single-project/architecture/nest-microservice/.env.hbs +6 -0
  39. package/dist/templates/single-project/architecture/nest-microservice/src/app.controller.ts.hbs +2 -2
  40. package/dist/templates/single-project/architecture/nest-microservice/src/app.module.ts.hbs +28 -1
  41. package/dist/templates/single-project/architecture/nest-microservice/src/http-throttler.guard.ts.hbs +13 -0
  42. package/dist/templates/single-project/architecture/nest-microservice/src/main.ts.hbs +10 -9
  43. package/dist/templates/single-project/architecture/nest-microservice/test/microservice.e2e-spec.ts.hbs +35 -0
  44. package/dist/templates/single-project/shared/config/env.ts.hbs +9 -0
  45. package/package.json +5 -5
  46. package/dist/constants-BbC7KTI7.js +0 -1
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-BbC7KTI7.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-DX5wiqrq.js");console.log(`nest-arch/${s.replace(/^v/u,"")}`),process.exit(0)}await import("./index.js");
@@ -0,0 +1 @@
1
+ var O="0.5.0",s={version:O};const n="Nest Arch",o=s.version,t=`v${o}`,A="Build production-ready NestJS projects.",c="#e54545",R="#A0A0A0",C="#6B6B6B",E="#E5E5E5",_="#61AFEF",e="#3A3A3A",L="#7FD99A",r="#E8C468",I="#e96142ff";export{n as APP_NAME,A as APP_TAGLINE,t as APP_VERSION,o as CLI_VERSION,_ as COLOR_ACCENT,R as COLOR_DIM,C as COLOR_DIMMER,e as COLOR_DIVIDER,E as COLOR_FG,c as COLOR_RED,L as COLOR_SUCCESS,r as COLOR_WARM,I as COLOR_WARM_SECONDARY};