@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.
- package/README.md +53 -0
- package/dist/cli.js +2 -0
- package/dist/index-BEmiTZdl.js +31157 -0
- package/dist/index-CAPJ7KZy.js +4 -0
- package/dist/index.js +1 -0
- package/dist/templates/addons/husky/pre-commit.hbs +31 -0
- package/dist/templates/base/.env.hbs +2 -0
- package/dist/templates/base/.gitignore.hbs +56 -0
- package/dist/templates/base/.yarnrc.yml.hbs +6 -0
- package/dist/templates/base/README.md.hbs +37 -0
- package/dist/templates/base/nest-cli.json.hbs +8 -0
- package/dist/templates/base/pnpm-workspace.yaml.hbs +2 -0
- package/dist/templates/base/src/app.controller.spec.ts.hbs +25 -0
- package/dist/templates/base/src/app.controller.ts.hbs +13 -0
- package/dist/templates/base/src/app.module.ts.hbs +11 -0
- package/dist/templates/base/src/app.service.ts.hbs +8 -0
- package/dist/templates/base/src/main.ts.hbs +14 -0
- package/dist/templates/base/test/app.e2e-spec.ts.hbs +22 -0
- package/dist/templates/base/tsconfig.build.json.hbs +12 -0
- package/dist/templates/base/tsconfig.json.hbs +27 -0
- package/dist/templates/base/vitest.config.e2e.ts.hbs +9 -0
- package/dist/templates/base/vitest.config.ts.hbs +9 -0
- package/dist/templates/extras/docker/.dockerignore.hbs +1 -0
- package/dist/templates/extras/docker/Dockerfile.hbs +2 -0
- package/dist/templates/extras/docker/docker-compose.yml.hbs +3 -0
- package/dist/templates/extras/swagger/dependencies.hbs +1 -0
- package/dist/templates/monorepo/apps/api-gateway/nest-cli.json.hbs +8 -0
- package/dist/templates/monorepo/apps/api-gateway/package.json.hbs +49 -0
- package/dist/templates/monorepo/apps/api-gateway/src/app.controller.spec.ts.hbs +25 -0
- package/dist/templates/monorepo/apps/api-gateway/src/app.controller.ts.hbs +13 -0
- package/dist/templates/monorepo/apps/api-gateway/src/app.module.ts.hbs +11 -0
- package/dist/templates/monorepo/apps/api-gateway/src/app.service.ts.hbs +8 -0
- package/dist/templates/monorepo/apps/api-gateway/src/main.ts.hbs +13 -0
- package/dist/templates/monorepo/apps/api-gateway/test/app.e2e-spec.ts.hbs +22 -0
- package/dist/templates/monorepo/apps/api-gateway/tsconfig.build.json.hbs +9 -0
- package/dist/templates/monorepo/apps/api-gateway/tsconfig.json.hbs +4 -0
- package/dist/templates/monorepo/apps/api-gateway/vitest.config.e2e.ts.hbs +9 -0
- package/dist/templates/monorepo/apps/api-gateway/vitest.config.ts.hbs +9 -0
- package/dist/templates/monorepo/packages/config/package.json.hbs +5 -0
- package/dist/templates/monorepo/packages/config/tsconfig.base.json.hbs +22 -0
- package/dist/templates/monorepo/packages/config/tsconfig.nestjs.json.hbs +24 -0
- package/dist/templates/monorepo/packages/env/package.json.hbs +19 -0
- package/dist/templates/monorepo/packages/env/src/api-gateway.ts.hbs +37 -0
- package/dist/templates/monorepo/packages/env/tsconfig.json.hbs +4 -0
- package/dist/templates/monorepo/packages/shared/package.json.hbs +17 -0
- package/dist/templates/monorepo/packages/shared/tsconfig.json.hbs +4 -0
- package/dist/templates/monorepo/root/.gitignore.hbs +48 -0
- package/dist/templates/monorepo/root/.yarnrc.yml.hbs +6 -0
- package/dist/templates/monorepo/root/README.md.hbs +33 -0
- package/dist/templates/monorepo/root/package.json.hbs +35 -0
- package/dist/templates/monorepo/root/pnpm-workspace.yaml.hbs +11 -0
- package/dist/templates/monorepo/root/tsconfig.json.hbs +3 -0
- package/dist/templates/monorepo/root/turbo.json.hbs +21 -0
- package/dist/templates/single-project/architecture/nest-api/.env.hbs +2 -0
- package/dist/templates/single-project/architecture/nest-api/package.json.hbs +49 -0
- package/dist/templates/single-project/architecture/nest-api/pnpm-workspace.yaml.hbs +4 -0
- package/dist/templates/single-project/architecture/nest-api/src/main.ts.hbs +15 -0
- package/dist/templates/single-project/architecture/nest-gateway/src/app.controller.ts.hbs +19 -0
- package/dist/templates/single-project/architecture/nest-gateway/src/app.module.ts.hbs +12 -0
- package/dist/templates/single-project/architecture/nest-gateway/src/app.service.ts.hbs +26 -0
- package/dist/templates/single-project/architecture/nest-gateway/src/main.ts.hbs +15 -0
- package/dist/templates/single-project/architecture/nest-microservice/.env.hbs +3 -0
- package/dist/templates/single-project/architecture/nest-microservice/src/app.controller.ts.hbs +18 -0
- package/dist/templates/single-project/architecture/nest-microservice/src/app.module.ts.hbs +11 -0
- package/dist/templates/single-project/architecture/nest-microservice/src/app.service.ts.hbs +12 -0
- package/dist/templates/single-project/architecture/nest-microservice/src/main.ts.hbs +21 -0
- package/dist/templates/single-project/shared/config/env.ts.hbs +37 -0
- 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";
|