@nest-arch/tui 0.1.1

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 (68) hide show
  1. package/README.md +53 -0
  2. package/dist/cli.js +2 -0
  3. package/dist/index-BEmiTZdl.js +31157 -0
  4. package/dist/index-CAPJ7KZy.js +4 -0
  5. package/dist/index.js +1 -0
  6. package/dist/templates/addons/husky/pre-commit.hbs +31 -0
  7. package/dist/templates/base/.env.hbs +2 -0
  8. package/dist/templates/base/.gitignore.hbs +56 -0
  9. package/dist/templates/base/.yarnrc.yml.hbs +6 -0
  10. package/dist/templates/base/README.md.hbs +37 -0
  11. package/dist/templates/base/nest-cli.json.hbs +8 -0
  12. package/dist/templates/base/pnpm-workspace.yaml.hbs +2 -0
  13. package/dist/templates/base/src/app.controller.spec.ts.hbs +25 -0
  14. package/dist/templates/base/src/app.controller.ts.hbs +13 -0
  15. package/dist/templates/base/src/app.module.ts.hbs +11 -0
  16. package/dist/templates/base/src/app.service.ts.hbs +8 -0
  17. package/dist/templates/base/src/main.ts.hbs +14 -0
  18. package/dist/templates/base/test/app.e2e-spec.ts.hbs +22 -0
  19. package/dist/templates/base/tsconfig.build.json.hbs +12 -0
  20. package/dist/templates/base/tsconfig.json.hbs +27 -0
  21. package/dist/templates/base/vitest.config.e2e.ts.hbs +9 -0
  22. package/dist/templates/base/vitest.config.ts.hbs +9 -0
  23. package/dist/templates/extras/docker/.dockerignore.hbs +1 -0
  24. package/dist/templates/extras/docker/Dockerfile.hbs +2 -0
  25. package/dist/templates/extras/docker/docker-compose.yml.hbs +3 -0
  26. package/dist/templates/extras/swagger/dependencies.hbs +1 -0
  27. package/dist/templates/monorepo/apps/api-gateway/nest-cli.json.hbs +8 -0
  28. package/dist/templates/monorepo/apps/api-gateway/package.json.hbs +49 -0
  29. package/dist/templates/monorepo/apps/api-gateway/src/app.controller.spec.ts.hbs +25 -0
  30. package/dist/templates/monorepo/apps/api-gateway/src/app.controller.ts.hbs +13 -0
  31. package/dist/templates/monorepo/apps/api-gateway/src/app.module.ts.hbs +11 -0
  32. package/dist/templates/monorepo/apps/api-gateway/src/app.service.ts.hbs +8 -0
  33. package/dist/templates/monorepo/apps/api-gateway/src/main.ts.hbs +13 -0
  34. package/dist/templates/monorepo/apps/api-gateway/test/app.e2e-spec.ts.hbs +22 -0
  35. package/dist/templates/monorepo/apps/api-gateway/tsconfig.build.json.hbs +9 -0
  36. package/dist/templates/monorepo/apps/api-gateway/tsconfig.json.hbs +4 -0
  37. package/dist/templates/monorepo/apps/api-gateway/vitest.config.e2e.ts.hbs +9 -0
  38. package/dist/templates/monorepo/apps/api-gateway/vitest.config.ts.hbs +9 -0
  39. package/dist/templates/monorepo/packages/config/package.json.hbs +5 -0
  40. package/dist/templates/monorepo/packages/config/tsconfig.base.json.hbs +22 -0
  41. package/dist/templates/monorepo/packages/config/tsconfig.nestjs.json.hbs +24 -0
  42. package/dist/templates/monorepo/packages/env/package.json.hbs +19 -0
  43. package/dist/templates/monorepo/packages/env/src/api-gateway.ts.hbs +37 -0
  44. package/dist/templates/monorepo/packages/env/tsconfig.json.hbs +4 -0
  45. package/dist/templates/monorepo/packages/shared/package.json.hbs +17 -0
  46. package/dist/templates/monorepo/packages/shared/tsconfig.json.hbs +4 -0
  47. package/dist/templates/monorepo/root/.gitignore.hbs +48 -0
  48. package/dist/templates/monorepo/root/.yarnrc.yml.hbs +6 -0
  49. package/dist/templates/monorepo/root/README.md.hbs +33 -0
  50. package/dist/templates/monorepo/root/package.json.hbs +35 -0
  51. package/dist/templates/monorepo/root/pnpm-workspace.yaml.hbs +11 -0
  52. package/dist/templates/monorepo/root/tsconfig.json.hbs +3 -0
  53. package/dist/templates/monorepo/root/turbo.json.hbs +21 -0
  54. package/dist/templates/single-project/architecture/nest-api/.env.hbs +2 -0
  55. package/dist/templates/single-project/architecture/nest-api/package.json.hbs +49 -0
  56. package/dist/templates/single-project/architecture/nest-api/pnpm-workspace.yaml.hbs +4 -0
  57. package/dist/templates/single-project/architecture/nest-api/src/main.ts.hbs +15 -0
  58. package/dist/templates/single-project/architecture/nest-gateway/src/app.controller.ts.hbs +19 -0
  59. package/dist/templates/single-project/architecture/nest-gateway/src/app.module.ts.hbs +12 -0
  60. package/dist/templates/single-project/architecture/nest-gateway/src/app.service.ts.hbs +26 -0
  61. package/dist/templates/single-project/architecture/nest-gateway/src/main.ts.hbs +15 -0
  62. package/dist/templates/single-project/architecture/nest-microservice/.env.hbs +3 -0
  63. package/dist/templates/single-project/architecture/nest-microservice/src/app.controller.ts.hbs +18 -0
  64. package/dist/templates/single-project/architecture/nest-microservice/src/app.module.ts.hbs +11 -0
  65. package/dist/templates/single-project/architecture/nest-microservice/src/app.service.ts.hbs +12 -0
  66. package/dist/templates/single-project/architecture/nest-microservice/src/main.ts.hbs +21 -0
  67. package/dist/templates/single-project/shared/config/env.ts.hbs +37 -0
  68. package/package.json +63 -0
package/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # @nest-arch/tui
2
+
3
+ Interactive terminal UI for generating NestJS projects.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ # Run directly with npx
9
+ npx @nest-arch/tui
10
+
11
+ # Or install globally
12
+ npm install -g @nest-arch/tui
13
+ nest-arch
14
+ ```
15
+
16
+ ## Features
17
+
18
+ - Interactive wizard for project configuration
19
+ - Support for single and monorepo architectures
20
+ - Database, ORM, and API selection
21
+ - Authentication setup (JWT, Passport, Better-Auth)
22
+ - Docker, Swagger, and other extras
23
+ - Module generation for existing projects
24
+
25
+ ## Usage
26
+
27
+ ```bash
28
+ # Start the interactive wizard
29
+ npx @nest-arch/tui
30
+
31
+ # Generate a module in an existing project
32
+ npx @nest-arch/core generate:module --name users --dtos --entity
33
+ ```
34
+
35
+ ## Development
36
+
37
+ ```bash
38
+ # Install dependencies
39
+ pnpm install
40
+
41
+ # Run in development mode
42
+ pnpm dev
43
+
44
+ # Run tests
45
+ pnpm test
46
+
47
+ # Type check
48
+ pnpm check-types
49
+ ```
50
+
51
+ ## License
52
+
53
+ MIT
package/dist/cli.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import"./index-BEmiTZdl.js";import"react/jsx-runtime";import"ink";import"react";import"ink-text-input";import"node:fs";import"node:os";import"node:path";import"node:fs/promises";import"fs";import"node:child_process";import"node:util";import"path";import"os";import"inspector";import"util";import"stream";import"events";import"fs/promises";import"open";