@idealyst/cli 1.2.0 → 1.2.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/dist/commands/add.js +233 -0
- package/dist/commands/add.js.map +1 -0
- package/dist/commands/index.js +13 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/info.js +193 -0
- package/dist/commands/info.js.map +1 -0
- package/dist/commands/init.js +155 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/constants.js +119 -0
- package/dist/constants.js.map +1 -0
- package/dist/generators/core/index.js +23 -0
- package/dist/generators/core/index.js.map +1 -0
- package/dist/generators/core/mobile.js +286 -0
- package/dist/generators/core/mobile.js.map +1 -0
- package/dist/generators/core/shared.js +207 -0
- package/dist/generators/core/shared.js.map +1 -0
- package/dist/generators/core/web.js +377 -0
- package/dist/generators/core/web.js.map +1 -0
- package/dist/generators/extensions/api.js +223 -0
- package/dist/generators/extensions/api.js.map +1 -0
- package/dist/generators/extensions/devcontainer.js +510 -0
- package/dist/generators/extensions/devcontainer.js.map +1 -0
- package/dist/generators/extensions/graphql.js +202 -0
- package/dist/generators/extensions/graphql.js.map +1 -0
- package/dist/generators/extensions/index.js +17 -0
- package/dist/generators/extensions/index.js.map +1 -0
- package/dist/generators/extensions/prisma.js +249 -0
- package/dist/generators/extensions/prisma.js.map +1 -0
- package/dist/generators/extensions/trpc.js +258 -0
- package/dist/generators/extensions/trpc.js.map +1 -0
- package/dist/generators/index.js +106 -4
- package/dist/generators/index.js.map +1 -1
- package/dist/generators/reactNative.js +177 -0
- package/dist/generators/reactNative.js.map +1 -0
- package/dist/generators/workspace.js +272 -0
- package/dist/generators/workspace.js.map +1 -0
- package/dist/identifiers/android.js +75 -0
- package/dist/identifiers/android.js.map +1 -0
- package/dist/identifiers/index.js +35 -0
- package/dist/identifiers/index.js.map +1 -0
- package/dist/identifiers/ios.js +65 -0
- package/dist/identifiers/ios.js.map +1 -0
- package/dist/index.js +41 -319
- package/dist/index.js.map +1 -1
- package/dist/templates/copier.js +135 -0
- package/dist/templates/copier.js.map +1 -0
- package/dist/templates/index.js +23 -0
- package/dist/templates/index.js.map +1 -0
- package/dist/templates/merger.js +113 -0
- package/dist/templates/merger.js.map +1 -0
- package/dist/templates/processor.js +142 -0
- package/dist/templates/processor.js.map +1 -0
- package/dist/types/commands/add.d.ts +14 -0
- package/dist/types/commands/index.d.ts +6 -0
- package/dist/types/commands/info.d.ts +10 -0
- package/dist/types/commands/init.d.ts +19 -0
- package/dist/types/constants.d.ts +76 -0
- package/dist/types/generators/core/index.d.ts +6 -0
- package/dist/types/generators/core/mobile.d.ts +13 -0
- package/dist/types/generators/core/shared.d.ts +8 -0
- package/dist/types/generators/core/web.d.ts +8 -0
- package/dist/types/generators/extensions/api.d.ts +8 -0
- package/dist/types/generators/extensions/devcontainer.d.ts +15 -0
- package/dist/types/generators/extensions/graphql.d.ts +8 -0
- package/dist/types/generators/extensions/index.d.ts +8 -0
- package/dist/types/generators/extensions/prisma.d.ts +8 -0
- package/dist/types/generators/extensions/trpc.d.ts +9 -0
- package/dist/types/generators/index.d.ts +11 -3
- package/dist/types/generators/reactNative.d.ts +19 -0
- package/dist/types/generators/workspace.d.ts +8 -0
- package/dist/types/identifiers/android.d.ts +26 -0
- package/dist/types/identifiers/index.d.ts +26 -0
- package/dist/types/identifiers/ios.d.ts +21 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/templates/copier.d.ts +24 -0
- package/dist/types/templates/index.d.ts +6 -0
- package/dist/types/templates/merger.d.ts +43 -0
- package/dist/types/templates/processor.d.ts +39 -0
- package/dist/types/types.d.ts +153 -5
- package/dist/types/utils/filesystem.d.ts +56 -0
- package/dist/types/utils/index.d.ts +7 -0
- package/dist/types/utils/logger.d.ts +58 -0
- package/dist/types/utils/shell.d.ts +35 -0
- package/dist/types/utils/validation.d.ts +32 -0
- package/dist/types/wizard/index.d.ts +20 -0
- package/dist/types/wizard/steps/apiExtension.d.ts +5 -0
- package/dist/types/wizard/steps/appDisplayName.d.ts +5 -0
- package/dist/types/wizard/steps/devcontainerExtension.d.ts +5 -0
- package/dist/types/wizard/steps/graphqlExtension.d.ts +5 -0
- package/dist/types/wizard/steps/index.d.ts +12 -0
- package/dist/types/wizard/steps/orgDomain.d.ts +5 -0
- package/dist/types/wizard/steps/prismaExtension.d.ts +5 -0
- package/dist/types/wizard/steps/projectName.d.ts +5 -0
- package/dist/types/wizard/steps/summary.d.ts +5 -0
- package/dist/types/wizard/steps/trpcExtension.d.ts +5 -0
- package/dist/types/wizard/validators.d.ts +17 -0
- package/dist/types.js +41 -0
- package/dist/types.js.map +1 -1
- package/dist/utils/filesystem.js +173 -0
- package/dist/utils/filesystem.js.map +1 -0
- package/dist/utils/index.js +24 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/logger.js +95 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/shell.js +113 -0
- package/dist/utils/shell.js.map +1 -0
- package/dist/utils/validation.js +196 -0
- package/dist/utils/validation.js.map +1 -0
- package/dist/wizard/index.js +177 -0
- package/dist/wizard/index.js.map +1 -0
- package/dist/wizard/steps/apiExtension.js +33 -0
- package/dist/wizard/steps/apiExtension.js.map +1 -0
- package/dist/wizard/steps/appDisplayName.js +53 -0
- package/dist/wizard/steps/appDisplayName.js.map +1 -0
- package/dist/wizard/steps/devcontainerExtension.js +78 -0
- package/dist/wizard/steps/devcontainerExtension.js.map +1 -0
- package/dist/wizard/steps/graphqlExtension.js +37 -0
- package/dist/wizard/steps/graphqlExtension.js.map +1 -0
- package/dist/wizard/steps/index.js +25 -0
- package/dist/wizard/steps/index.js.map +1 -0
- package/dist/wizard/steps/orgDomain.js +40 -0
- package/dist/wizard/steps/orgDomain.js.map +1 -0
- package/dist/wizard/steps/prismaExtension.js +33 -0
- package/dist/wizard/steps/prismaExtension.js.map +1 -0
- package/dist/wizard/steps/projectName.js +40 -0
- package/dist/wizard/steps/projectName.js.map +1 -0
- package/dist/wizard/steps/summary.js +107 -0
- package/dist/wizard/steps/summary.js.map +1 -0
- package/dist/wizard/steps/trpcExtension.js +37 -0
- package/dist/wizard/steps/trpcExtension.js.map +1 -0
- package/dist/wizard/validators.js +35 -0
- package/dist/wizard/validators.js.map +1 -0
- package/package.json +6 -19
- package/README.md +0 -110
- package/dist/generators/init.js +0 -268
- package/dist/generators/init.js.map +0 -1
- package/dist/generators/utils.js +0 -682
- package/dist/generators/utils.js.map +0 -1
- package/dist/scripts/configure-react-native-monorepo.js +0 -144
- package/dist/scripts/configure-react-native-monorepo.js.map +0 -1
- package/dist/template/.devcontainer/Dockerfile +0 -26
- package/dist/template/.devcontainer/devcontainer.json +0 -113
- package/dist/template/.devcontainer/docker-compose.yml +0 -59
- package/dist/template/.devcontainer/figma-mcp.sh +0 -32
- package/dist/template/.devcontainer/gitignore.template +0 -2
- package/dist/template/.devcontainer/setup.sh +0 -45
- package/dist/template/DOCKER.md +0 -0
- package/dist/template/Dockerfile +0 -111
- package/dist/template/README.md +0 -233
- package/dist/template/docker/nginx/prod.conf +0 -238
- package/dist/template/docker/nginx.conf +0 -131
- package/dist/template/docker/postgres/init.sql +0 -41
- package/dist/template/docker/prometheus/prometheus.yml +0 -52
- package/dist/template/docker-compose.prod.yml +0 -146
- package/dist/template/docker-compose.yml +0 -143
- package/dist/template/dockerignore.template +0 -151
- package/dist/template/env.example.template +0 -36
- package/dist/template/gitignore.template +0 -56
- package/dist/template/jest.config.js +0 -20
- package/dist/template/mcp.json.template +0 -8
- package/dist/template/package.json +0 -45
- package/dist/template/packages/api/README.md +0 -510
- package/dist/template/packages/api/__tests__/api.test.ts +0 -26
- package/dist/template/packages/api/env.example.template +0 -6
- package/dist/template/packages/api/gitignore.template +0 -35
- package/dist/template/packages/api/jest.config.js +0 -23
- package/dist/template/packages/api/jest.setup.js +0 -9
- package/dist/template/packages/api/package.json +0 -66
- package/dist/template/packages/api/src/context.ts +0 -52
- package/dist/template/packages/api/src/controllers/TestController.ts +0 -0
- package/dist/template/packages/api/src/graphql/builder.ts +0 -75
- package/dist/template/packages/api/src/graphql/generated.ts +0 -64
- package/dist/template/packages/api/src/graphql/index.ts +0 -75
- package/dist/template/packages/api/src/graphql/types/index.ts +0 -44
- package/dist/template/packages/api/src/graphql/types/test.ts +0 -245
- package/dist/template/packages/api/src/index.ts +0 -26
- package/dist/template/packages/api/src/lib/database.ts +0 -23
- package/dist/template/packages/api/src/router/index.ts +0 -163
- package/dist/template/packages/api/src/routers/test.ts +0 -161
- package/dist/template/packages/api/src/server.ts +0 -68
- package/dist/template/packages/api/src/trpc.ts +0 -28
- package/dist/template/packages/api/tsconfig.json +0 -44
- package/dist/template/packages/database/README.md +0 -162
- package/dist/template/packages/database/gitignore.template +0 -41
- package/dist/template/packages/database/package.json +0 -49
- package/dist/template/packages/database/prisma/seed.ts +0 -64
- package/dist/template/packages/database/schema.prisma +0 -107
- package/dist/template/packages/database/src/index.ts +0 -15
- package/dist/template/packages/database/src/validators.ts +0 -10
- package/dist/template/packages/database/tsconfig.json +0 -18
- package/dist/template/packages/mobile/README.md +0 -86
- package/dist/template/packages/mobile/__tests__/App.test.tsx +0 -156
- package/dist/template/packages/mobile/__tests__/components.test.tsx +0 -300
- package/dist/template/packages/mobile/app.json +0 -5
- package/dist/template/packages/mobile/babel.config.js +0 -10
- package/dist/template/packages/mobile/gitignore.template +0 -73
- package/dist/template/packages/mobile/index.js +0 -6
- package/dist/template/packages/mobile/jest.config.js +0 -21
- package/dist/template/packages/mobile/jest.setup.js +0 -12
- package/dist/template/packages/mobile/metro.config.js +0 -36
- package/dist/template/packages/mobile/package.json +0 -60
- package/dist/template/packages/mobile/src/App.tsx +0 -8
- package/dist/template/packages/mobile/src/utils/trpc.ts +0 -7
- package/dist/template/packages/mobile/tsconfig.json +0 -28
- package/dist/template/packages/shared/README.md +0 -135
- package/dist/template/packages/shared/__tests__/shared.test.ts +0 -51
- package/dist/template/packages/shared/gitignore.template +0 -35
- package/dist/template/packages/shared/jest.config.js +0 -22
- package/dist/template/packages/shared/package.json +0 -68
- package/dist/template/packages/shared/src/components/App.tsx +0 -57
- package/dist/template/packages/shared/src/components/HelloWorld.tsx +0 -531
- package/dist/template/packages/shared/src/components/index.ts +0 -1
- package/dist/template/packages/shared/src/graphql/client.ts +0 -34
- package/dist/template/packages/shared/src/index.ts +0 -22
- package/dist/template/packages/shared/src/navigation/AppRouter.tsx +0 -565
- package/dist/template/packages/shared/src/trpc/client.ts +0 -44
- package/dist/template/packages/shared/tsconfig.json +0 -22
- package/dist/template/packages/web/README.md +0 -131
- package/dist/template/packages/web/__tests__/App.test.tsx +0 -342
- package/dist/template/packages/web/__tests__/components.test.tsx +0 -564
- package/dist/template/packages/web/gitignore.template +0 -35
- package/dist/template/packages/web/index.html +0 -13
- package/dist/template/packages/web/jest.config.js +0 -27
- package/dist/template/packages/web/jest.setup.js +0 -24
- package/dist/template/packages/web/package.json +0 -69
- package/dist/template/packages/web/src/App.tsx +0 -14
- package/dist/template/packages/web/src/components/TestDemo.tsx +0 -164
- package/dist/template/packages/web/src/main.tsx +0 -25
- package/dist/template/packages/web/src/utils/trpc.ts +0 -7
- package/dist/template/packages/web/tsconfig.json +0 -26
- package/dist/template/packages/web/vite.config.ts +0 -98
- package/dist/template/setup.sh +0 -30
- package/dist/template/tsconfig.json +0 -22
- package/dist/template/yarnrc.yml.template +0 -4
- package/dist/types/generators/init.d.ts +0 -5
- package/dist/types/generators/utils.d.ts +0 -45
- package/dist/types/scripts/configure-react-native-monorepo.d.ts +0 -23
- package/template/.devcontainer/Dockerfile +0 -26
- package/template/.devcontainer/devcontainer.json +0 -113
- package/template/.devcontainer/docker-compose.yml +0 -59
- package/template/.devcontainer/figma-mcp.sh +0 -32
- package/template/.devcontainer/setup.sh +0 -45
- package/template/.dockerignore +0 -151
- package/template/.env.example +0 -36
- package/template/.env.production +0 -56
- package/template/DOCKER.md +0 -0
- package/template/Dockerfile +0 -111
- package/template/README.md +0 -233
- package/template/docker/nginx/prod.conf +0 -238
- package/template/docker/nginx.conf +0 -131
- package/template/docker/postgres/init.sql +0 -41
- package/template/docker/prometheus/prometheus.yml +0 -52
- package/template/docker-compose.prod.yml +0 -146
- package/template/docker-compose.yml +0 -143
- package/template/jest.config.js +0 -20
- package/template/package.json +0 -45
- package/template/packages/api/.env.example +0 -6
- package/template/packages/api/README.md +0 -510
- package/template/packages/api/__tests__/api.test.ts +0 -26
- package/template/packages/api/jest.config.js +0 -23
- package/template/packages/api/jest.setup.js +0 -9
- package/template/packages/api/package.json +0 -66
- package/template/packages/api/src/context.ts +0 -52
- package/template/packages/api/src/controllers/TestController.ts +0 -0
- package/template/packages/api/src/graphql/builder.ts +0 -75
- package/template/packages/api/src/graphql/generated.ts +0 -64
- package/template/packages/api/src/graphql/index.ts +0 -75
- package/template/packages/api/src/graphql/types/index.ts +0 -44
- package/template/packages/api/src/graphql/types/test.ts +0 -245
- package/template/packages/api/src/index.ts +0 -26
- package/template/packages/api/src/lib/database.ts +0 -23
- package/template/packages/api/src/router/index.ts +0 -163
- package/template/packages/api/src/routers/test.ts +0 -161
- package/template/packages/api/src/server.ts +0 -68
- package/template/packages/api/src/trpc.ts +0 -28
- package/template/packages/api/tsconfig.json +0 -44
- package/template/packages/database/README.md +0 -162
- package/template/packages/database/package.json +0 -49
- package/template/packages/database/prisma/seed.ts +0 -64
- package/template/packages/database/schema.prisma +0 -107
- package/template/packages/database/src/index.ts +0 -15
- package/template/packages/database/src/validators.ts +0 -10
- package/template/packages/database/tsconfig.json +0 -18
- package/template/packages/mobile/README.md +0 -86
- package/template/packages/mobile/__tests__/App.test.tsx +0 -156
- package/template/packages/mobile/__tests__/components.test.tsx +0 -300
- package/template/packages/mobile/app.json +0 -5
- package/template/packages/mobile/babel.config.js +0 -26
- package/template/packages/mobile/index.js +0 -8
- package/template/packages/mobile/jest.config.js +0 -21
- package/template/packages/mobile/jest.setup.js +0 -12
- package/template/packages/mobile/metro.config.js +0 -36
- package/template/packages/mobile/package.json +0 -60
- package/template/packages/mobile/src/App.tsx +0 -8
- package/template/packages/mobile/src/utils/trpc.ts +0 -7
- package/template/packages/mobile/tsconfig.json +0 -28
- package/template/packages/shared/README.md +0 -135
- package/template/packages/shared/__tests__/shared.test.ts +0 -51
- package/template/packages/shared/jest.config.js +0 -22
- package/template/packages/shared/package.json +0 -68
- package/template/packages/shared/src/components/App.tsx +0 -57
- package/template/packages/shared/src/components/HelloWorld.tsx +0 -531
- package/template/packages/shared/src/components/index.ts +0 -1
- package/template/packages/shared/src/graphql/client.ts +0 -34
- package/template/packages/shared/src/index.ts +0 -25
- package/template/packages/shared/src/navigation/AppRouter.tsx +0 -565
- package/template/packages/shared/src/trpc/client.ts +0 -44
- package/template/packages/shared/src/unistyles.ts +0 -50
- package/template/packages/shared/tsconfig.json +0 -22
- package/template/packages/web/README.md +0 -131
- package/template/packages/web/__tests__/App.test.tsx +0 -342
- package/template/packages/web/__tests__/components.test.tsx +0 -564
- package/template/packages/web/index.html +0 -13
- package/template/packages/web/jest.config.js +0 -27
- package/template/packages/web/jest.setup.js +0 -24
- package/template/packages/web/package.json +0 -69
- package/template/packages/web/src/App.tsx +0 -14
- package/template/packages/web/src/components/TestDemo.tsx +0 -164
- package/template/packages/web/src/main.tsx +0 -27
- package/template/packages/web/src/utils/trpc.ts +0 -7
- package/template/packages/web/tsconfig.json +0 -26
- package/template/packages/web/vite.config.ts +0 -114
- package/template/setup.sh +0 -30
- package/template/tsconfig.json +0 -22
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
version: '3.8'
|
|
2
|
-
|
|
3
|
-
# Production overrides for docker-compose.yml
|
|
4
|
-
# Usage: docker-compose -f docker-compose.yml -f docker-compose.prod.yml up
|
|
5
|
-
|
|
6
|
-
services:
|
|
7
|
-
postgres:
|
|
8
|
-
environment:
|
|
9
|
-
POSTGRES_DB: ${POSTGRES_DB}
|
|
10
|
-
POSTGRES_USER: ${POSTGRES_USER}
|
|
11
|
-
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
12
|
-
volumes:
|
|
13
|
-
- postgres_prod_data:/var/lib/postgresql/data
|
|
14
|
-
deploy:
|
|
15
|
-
resources:
|
|
16
|
-
limits:
|
|
17
|
-
memory: 1G
|
|
18
|
-
cpus: '0.5'
|
|
19
|
-
reservations:
|
|
20
|
-
memory: 512M
|
|
21
|
-
cpus: '0.25'
|
|
22
|
-
|
|
23
|
-
redis:
|
|
24
|
-
volumes:
|
|
25
|
-
- redis_prod_data:/data
|
|
26
|
-
deploy:
|
|
27
|
-
resources:
|
|
28
|
-
limits:
|
|
29
|
-
memory: 256M
|
|
30
|
-
cpus: '0.25'
|
|
31
|
-
reservations:
|
|
32
|
-
memory: 128M
|
|
33
|
-
cpus: '0.1'
|
|
34
|
-
|
|
35
|
-
api:
|
|
36
|
-
environment:
|
|
37
|
-
NODE_ENV: production
|
|
38
|
-
LOG_LEVEL: info
|
|
39
|
-
RATE_LIMIT_WINDOW_MS: 900000
|
|
40
|
-
RATE_LIMIT_MAX_REQUESTS: 100
|
|
41
|
-
deploy:
|
|
42
|
-
replicas: 2
|
|
43
|
-
resources:
|
|
44
|
-
limits:
|
|
45
|
-
memory: 512M
|
|
46
|
-
cpus: '0.5'
|
|
47
|
-
reservations:
|
|
48
|
-
memory: 256M
|
|
49
|
-
cpus: '0.25'
|
|
50
|
-
restart_policy:
|
|
51
|
-
condition: on-failure
|
|
52
|
-
delay: 5s
|
|
53
|
-
max_attempts: 3
|
|
54
|
-
window: 120s
|
|
55
|
-
|
|
56
|
-
web:
|
|
57
|
-
deploy:
|
|
58
|
-
replicas: 2
|
|
59
|
-
resources:
|
|
60
|
-
limits:
|
|
61
|
-
memory: 128M
|
|
62
|
-
cpus: '0.25'
|
|
63
|
-
reservations:
|
|
64
|
-
memory: 64M
|
|
65
|
-
cpus: '0.1'
|
|
66
|
-
restart_policy:
|
|
67
|
-
condition: on-failure
|
|
68
|
-
delay: 5s
|
|
69
|
-
max_attempts: 3
|
|
70
|
-
window: 120s
|
|
71
|
-
|
|
72
|
-
# Load balancer for production
|
|
73
|
-
nginx:
|
|
74
|
-
image: nginx:alpine
|
|
75
|
-
container_name: ${PROJECT_NAME:-idealyst}-nginx
|
|
76
|
-
ports:
|
|
77
|
-
- "80:80"
|
|
78
|
-
- "443:443"
|
|
79
|
-
volumes:
|
|
80
|
-
- ./docker/nginx/prod.conf:/etc/nginx/nginx.conf:ro
|
|
81
|
-
- ./docker/nginx/ssl:/etc/nginx/ssl:ro
|
|
82
|
-
- ./logs/nginx:/var/log/nginx
|
|
83
|
-
depends_on:
|
|
84
|
-
- api
|
|
85
|
-
- web
|
|
86
|
-
restart: unless-stopped
|
|
87
|
-
deploy:
|
|
88
|
-
resources:
|
|
89
|
-
limits:
|
|
90
|
-
memory: 128M
|
|
91
|
-
cpus: '0.25'
|
|
92
|
-
reservations:
|
|
93
|
-
memory: 64M
|
|
94
|
-
cpus: '0.1'
|
|
95
|
-
networks:
|
|
96
|
-
- idealyst-network
|
|
97
|
-
|
|
98
|
-
# Monitoring with Prometheus (optional)
|
|
99
|
-
prometheus:
|
|
100
|
-
image: prom/prometheus:latest
|
|
101
|
-
container_name: ${PROJECT_NAME:-idealyst}-prometheus
|
|
102
|
-
ports:
|
|
103
|
-
- "9090:9090"
|
|
104
|
-
volumes:
|
|
105
|
-
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
|
106
|
-
- prometheus_data:/prometheus
|
|
107
|
-
command:
|
|
108
|
-
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
109
|
-
- '--storage.tsdb.path=/prometheus'
|
|
110
|
-
- '--web.console.libraries=/etc/prometheus/console_libraries'
|
|
111
|
-
- '--web.console.templates=/etc/prometheus/consoles'
|
|
112
|
-
- '--storage.tsdb.retention.time=200h'
|
|
113
|
-
- '--web.enable-lifecycle'
|
|
114
|
-
restart: unless-stopped
|
|
115
|
-
networks:
|
|
116
|
-
- idealyst-network
|
|
117
|
-
profiles:
|
|
118
|
-
- monitoring
|
|
119
|
-
|
|
120
|
-
# Log aggregation with Grafana (optional)
|
|
121
|
-
grafana:
|
|
122
|
-
image: grafana/grafana:latest
|
|
123
|
-
container_name: ${PROJECT_NAME:-idealyst}-grafana
|
|
124
|
-
ports:
|
|
125
|
-
- "3002:3000"
|
|
126
|
-
volumes:
|
|
127
|
-
- grafana_data:/var/lib/grafana
|
|
128
|
-
- ./docker/grafana/provisioning:/etc/grafana/provisioning
|
|
129
|
-
environment:
|
|
130
|
-
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_PASSWORD:-admin}
|
|
131
|
-
GF_USERS_ALLOW_SIGN_UP: false
|
|
132
|
-
restart: unless-stopped
|
|
133
|
-
networks:
|
|
134
|
-
- idealyst-network
|
|
135
|
-
profiles:
|
|
136
|
-
- monitoring
|
|
137
|
-
|
|
138
|
-
volumes:
|
|
139
|
-
postgres_prod_data:
|
|
140
|
-
redis_prod_data:
|
|
141
|
-
prometheus_data:
|
|
142
|
-
grafana_data:
|
|
143
|
-
|
|
144
|
-
networks:
|
|
145
|
-
idealyst-network:
|
|
146
|
-
driver: bridge
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
version: '3.8'
|
|
2
|
-
|
|
3
|
-
services:
|
|
4
|
-
# PostgreSQL Database
|
|
5
|
-
postgres:
|
|
6
|
-
image: postgres:15-alpine
|
|
7
|
-
container_name: ${PROJECT_NAME:-idealyst}-postgres
|
|
8
|
-
environment:
|
|
9
|
-
POSTGRES_DB: ${POSTGRES_DB:-idealyst_db}
|
|
10
|
-
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
|
11
|
-
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
|
12
|
-
ports:
|
|
13
|
-
- "${POSTGRES_PORT:-5432}:5432"
|
|
14
|
-
volumes:
|
|
15
|
-
- postgres_data:/var/lib/postgresql/data
|
|
16
|
-
- ./docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
17
|
-
healthcheck:
|
|
18
|
-
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]
|
|
19
|
-
interval: 30s
|
|
20
|
-
timeout: 10s
|
|
21
|
-
retries: 5
|
|
22
|
-
networks:
|
|
23
|
-
- idealyst-network
|
|
24
|
-
|
|
25
|
-
# Redis Cache
|
|
26
|
-
redis:
|
|
27
|
-
image: redis:7-alpine
|
|
28
|
-
container_name: ${PROJECT_NAME:-idealyst}-redis
|
|
29
|
-
ports:
|
|
30
|
-
- "${REDIS_PORT:-6379}:6379"
|
|
31
|
-
volumes:
|
|
32
|
-
- redis_data:/data
|
|
33
|
-
healthcheck:
|
|
34
|
-
test: ["CMD", "redis-cli", "ping"]
|
|
35
|
-
interval: 30s
|
|
36
|
-
timeout: 10s
|
|
37
|
-
retries: 5
|
|
38
|
-
networks:
|
|
39
|
-
- idealyst-network
|
|
40
|
-
|
|
41
|
-
# API Service
|
|
42
|
-
api:
|
|
43
|
-
build:
|
|
44
|
-
context: .
|
|
45
|
-
dockerfile: Dockerfile
|
|
46
|
-
target: api-runner
|
|
47
|
-
container_name: ${PROJECT_NAME:-idealyst}-api
|
|
48
|
-
environment:
|
|
49
|
-
NODE_ENV: ${NODE_ENV:-production}
|
|
50
|
-
PORT: 3000
|
|
51
|
-
DATABASE_URL: postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/${POSTGRES_DB:-idealyst_db}
|
|
52
|
-
REDIS_URL: redis://redis:6379
|
|
53
|
-
ports:
|
|
54
|
-
- "${API_PORT:-3000}:3000"
|
|
55
|
-
depends_on:
|
|
56
|
-
postgres:
|
|
57
|
-
condition: service_healthy
|
|
58
|
-
redis:
|
|
59
|
-
condition: service_healthy
|
|
60
|
-
volumes:
|
|
61
|
-
- ./uploads:/app/uploads
|
|
62
|
-
restart: unless-stopped
|
|
63
|
-
healthcheck:
|
|
64
|
-
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
|
|
65
|
-
interval: 30s
|
|
66
|
-
timeout: 10s
|
|
67
|
-
retries: 5
|
|
68
|
-
networks:
|
|
69
|
-
- idealyst-network
|
|
70
|
-
|
|
71
|
-
# Web Application
|
|
72
|
-
web:
|
|
73
|
-
build:
|
|
74
|
-
context: .
|
|
75
|
-
dockerfile: Dockerfile
|
|
76
|
-
target: web-runner
|
|
77
|
-
container_name: ${PROJECT_NAME:-idealyst}-web
|
|
78
|
-
ports:
|
|
79
|
-
- "${WEB_PORT:-80}:80"
|
|
80
|
-
depends_on:
|
|
81
|
-
- api
|
|
82
|
-
restart: unless-stopped
|
|
83
|
-
healthcheck:
|
|
84
|
-
test: ["CMD", "curl", "-f", "http://localhost"]
|
|
85
|
-
interval: 30s
|
|
86
|
-
timeout: 10s
|
|
87
|
-
retries: 5
|
|
88
|
-
networks:
|
|
89
|
-
- idealyst-network
|
|
90
|
-
|
|
91
|
-
# Development Service (for local development)
|
|
92
|
-
dev:
|
|
93
|
-
build:
|
|
94
|
-
context: .
|
|
95
|
-
dockerfile: Dockerfile
|
|
96
|
-
target: dev
|
|
97
|
-
container_name: ${PROJECT_NAME:-idealyst}-dev
|
|
98
|
-
environment:
|
|
99
|
-
NODE_ENV: development
|
|
100
|
-
ports:
|
|
101
|
-
- "3000:3000" # API dev server
|
|
102
|
-
- "5173:5173" # Vite dev server
|
|
103
|
-
- "8080:8080" # Additional dev server
|
|
104
|
-
- "19006:19006" # Expo dev tools
|
|
105
|
-
volumes:
|
|
106
|
-
- .:/app
|
|
107
|
-
- /app/node_modules
|
|
108
|
-
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
109
|
-
depends_on:
|
|
110
|
-
postgres:
|
|
111
|
-
condition: service_healthy
|
|
112
|
-
redis:
|
|
113
|
-
condition: service_healthy
|
|
114
|
-
networks:
|
|
115
|
-
- idealyst-network
|
|
116
|
-
tty: true
|
|
117
|
-
stdin_open: true
|
|
118
|
-
|
|
119
|
-
# Test Runner
|
|
120
|
-
test:
|
|
121
|
-
build:
|
|
122
|
-
context: .
|
|
123
|
-
dockerfile: Dockerfile
|
|
124
|
-
target: test-runner
|
|
125
|
-
container_name: ${PROJECT_NAME:-idealyst}-test
|
|
126
|
-
environment:
|
|
127
|
-
NODE_ENV: test
|
|
128
|
-
CI: true
|
|
129
|
-
volumes:
|
|
130
|
-
- .:/app
|
|
131
|
-
- /app/node_modules
|
|
132
|
-
networks:
|
|
133
|
-
- idealyst-network
|
|
134
|
-
profiles:
|
|
135
|
-
- testing
|
|
136
|
-
|
|
137
|
-
volumes:
|
|
138
|
-
postgres_data:
|
|
139
|
-
redis_data:
|
|
140
|
-
|
|
141
|
-
networks:
|
|
142
|
-
idealyst-network:
|
|
143
|
-
driver: bridge
|
package/template/jest.config.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/** @type {import('jest').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
projects: [
|
|
4
|
-
'<rootDir>/packages/*/jest.config.js',
|
|
5
|
-
],
|
|
6
|
-
collectCoverage: true,
|
|
7
|
-
collectCoverageFrom: [
|
|
8
|
-
'packages/*/src/**/*.{ts,tsx}',
|
|
9
|
-
'!packages/*/src/**/*.d.ts',
|
|
10
|
-
'!packages/*/src/**/index.ts',
|
|
11
|
-
],
|
|
12
|
-
coverageDirectory: '<rootDir>/coverage',
|
|
13
|
-
coverageReporters: ['text', 'lcov', 'html'],
|
|
14
|
-
testTimeout: 30000,
|
|
15
|
-
// Ignore template files in node_modules
|
|
16
|
-
testPathIgnorePatterns: [
|
|
17
|
-
'/node_modules/',
|
|
18
|
-
'/templates/',
|
|
19
|
-
],
|
|
20
|
-
};
|
package/template/package.json
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "{{packageName}}",
|
|
3
|
-
"version": "{{version}}",
|
|
4
|
-
"description": "{{description}}",
|
|
5
|
-
"private": true,
|
|
6
|
-
"workspaces": [
|
|
7
|
-
"packages/*"
|
|
8
|
-
],
|
|
9
|
-
"packageManager": "yarn@4.1.0",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"dev": "concurrently \"yarn api:dev\" \"yarn web:dev\" \"yarn mobile:start\"",
|
|
12
|
-
"build": "yarn build:packages && yarn api:build && yarn web:build",
|
|
13
|
-
"build:packages": "yarn workspace @{{workspaceScope}}/database build && yarn workspace @{{workspaceScope}}/shared build",
|
|
14
|
-
"api:dev": "yarn workspace @{{workspaceScope}}/api dev",
|
|
15
|
-
"api:build": "yarn workspace @{{workspaceScope}}/api build",
|
|
16
|
-
"web:dev": "yarn workspace @{{workspaceScope}}/web dev",
|
|
17
|
-
"web:build": "yarn workspace @{{workspaceScope}}/web build",
|
|
18
|
-
"mobile:start": "yarn workspace @{{workspaceScope}}/mobile start",
|
|
19
|
-
"mobile:android": "yarn workspace @{{workspaceScope}}/mobile android",
|
|
20
|
-
"mobile:ios": "yarn workspace @{{workspaceScope}}/mobile ios",
|
|
21
|
-
"db:generate": "yarn workspace @{{workspaceScope}}/database db:generate",
|
|
22
|
-
"db:push": "yarn workspace @{{workspaceScope}}/database db:push",
|
|
23
|
-
"db:migrate": "yarn workspace @{{workspaceScope}}/database db:migrate",
|
|
24
|
-
"db:studio": "yarn workspace @{{workspaceScope}}/database db:studio",
|
|
25
|
-
"test": "yarn workspaces foreach --include '@/*' run test",
|
|
26
|
-
"test:watch": "yarn workspaces foreach --include '@/*' run test:watch",
|
|
27
|
-
"test:coverage": "yarn workspaces foreach --include '@/*' run test:coverage",
|
|
28
|
-
"test:ci": "yarn workspaces foreach --include '@/*' --parallel run test --passWithNoTests",
|
|
29
|
-
"type-check": "yarn workspaces run type-check"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@babel/core": "^7.28.0",
|
|
33
|
-
"@babel/preset-env": "^7.28.0",
|
|
34
|
-
"@babel/preset-react": "^7.27.1",
|
|
35
|
-
"@babel/preset-typescript": "^7.27.1",
|
|
36
|
-
"@idealyst/mcp-server": "^{{idealystVersion}}",
|
|
37
|
-
"@mobilenext/mobile-mcp": "^0.0.34",
|
|
38
|
-
"@playwright/mcp": "^0.0.45",
|
|
39
|
-
"@types/jest": "^29.5.12",
|
|
40
|
-
"concurrently": "^8.2.2",
|
|
41
|
-
"jest": "^29.7.0",
|
|
42
|
-
"ts-jest": "^29.1.2",
|
|
43
|
-
"typescript": "^5.0.0"
|
|
44
|
-
}
|
|
45
|
-
}
|