@idealyst/cli 1.0.88 → 1.0.90

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 (208) hide show
  1. package/dist/generators/index.js +3 -40
  2. package/dist/generators/index.js.map +1 -1
  3. package/dist/generators/init.js +273 -0
  4. package/dist/generators/init.js.map +1 -0
  5. package/dist/generators/utils.js +5 -0
  6. package/dist/generators/utils.js.map +1 -1
  7. package/dist/index.js +20 -202
  8. package/dist/index.js.map +1 -1
  9. package/dist/scripts/configure-react-native-monorepo.js +144 -0
  10. package/dist/scripts/configure-react-native-monorepo.js.map +1 -0
  11. package/dist/{templates/workspace → template}/README.md +66 -12
  12. package/dist/template/package.json +45 -0
  13. package/{templates → dist/template/packages}/api/package.json +3 -1
  14. package/{templates → dist/template/packages}/database/package.json +1 -1
  15. package/dist/{templates/native → template/packages/mobile}/babel.config.js +1 -0
  16. package/{templates/native → dist/template/packages/mobile}/metro.config.js +4 -4
  17. package/{templates/native → dist/template/packages/mobile}/package.json +5 -2
  18. package/{templates → dist/template/packages}/shared/package.json +2 -2
  19. package/{templates → dist/template/packages}/web/package.json +4 -1
  20. package/dist/types/generators/index.d.ts +1 -7
  21. package/dist/types/generators/init.d.ts +5 -0
  22. package/dist/types/scripts/configure-react-native-monorepo.d.ts +23 -0
  23. package/dist/types/types.d.ts +0 -4
  24. package/package.json +1 -1
  25. package/dist/generators/api.js +0 -31
  26. package/dist/generators/api.js.map +0 -1
  27. package/dist/generators/database.js +0 -31
  28. package/dist/generators/database.js.map +0 -1
  29. package/dist/generators/fullstack.js +0 -418
  30. package/dist/generators/fullstack.js.map +0 -1
  31. package/dist/generators/native.js +0 -112
  32. package/dist/generators/native.js.map +0 -1
  33. package/dist/generators/shared.js +0 -29
  34. package/dist/generators/shared.js.map +0 -1
  35. package/dist/generators/web.js +0 -45
  36. package/dist/generators/web.js.map +0 -1
  37. package/dist/generators/workspace.js +0 -83
  38. package/dist/generators/workspace.js.map +0 -1
  39. package/dist/templates/api/package.json +0 -54
  40. package/dist/templates/database/package.json +0 -49
  41. package/dist/templates/native/metro.config.js +0 -27
  42. package/dist/templates/native/package.json +0 -49
  43. package/dist/templates/native/src/App.tsx +0 -8
  44. package/dist/templates/shared/package.json +0 -62
  45. package/dist/templates/shared/src/components/App.tsx +0 -47
  46. package/dist/templates/shared/src/components/HelloWorld.tsx +0 -307
  47. package/dist/templates/shared/src/navigation/AppRouter.tsx +0 -98
  48. package/dist/templates/web/package.json +0 -66
  49. package/dist/templates/web/src/App.tsx +0 -14
  50. package/dist/templates/workspace/package.json +0 -35
  51. package/dist/types/generators/api.d.ts +0 -2
  52. package/dist/types/generators/database.d.ts +0 -2
  53. package/dist/types/generators/fullstack.d.ts +0 -2
  54. package/dist/types/generators/native.d.ts +0 -2
  55. package/dist/types/generators/shared.d.ts +0 -2
  56. package/dist/types/generators/web.d.ts +0 -2
  57. package/dist/types/generators/workspace.d.ts +0 -2
  58. package/templates/api/.env.example +0 -6
  59. package/templates/api/README.md +0 -274
  60. package/templates/api/__tests__/api.test.ts +0 -26
  61. package/templates/api/jest.config.js +0 -23
  62. package/templates/api/jest.setup.js +0 -9
  63. package/templates/api/src/context.ts +0 -19
  64. package/templates/api/src/controllers/TestController.ts +0 -0
  65. package/templates/api/src/index.ts +0 -9
  66. package/templates/api/src/lib/crud.ts +0 -150
  67. package/templates/api/src/lib/database.ts +0 -23
  68. package/templates/api/src/router/index.ts +0 -163
  69. package/templates/api/src/routers/test.ts +0 -59
  70. package/templates/api/src/routers/user.example.ts +0 -83
  71. package/templates/api/src/server.ts +0 -50
  72. package/templates/api/src/trpc.ts +0 -28
  73. package/templates/api/tsconfig.json +0 -43
  74. package/templates/database/README.md +0 -162
  75. package/templates/database/prisma/seed.ts +0 -64
  76. package/templates/database/schema.prisma +0 -107
  77. package/templates/database/src/index.ts +0 -15
  78. package/templates/database/src/validators.ts +0 -10
  79. package/templates/database/tsconfig.json +0 -18
  80. package/templates/native/README.md +0 -86
  81. package/templates/native/__tests__/App.test.tsx +0 -156
  82. package/templates/native/__tests__/components.test.tsx +0 -300
  83. package/templates/native/app.json +0 -5
  84. package/templates/native/babel.config.js +0 -10
  85. package/templates/native/index.js +0 -6
  86. package/templates/native/jest.config.js +0 -21
  87. package/templates/native/jest.setup.js +0 -12
  88. package/templates/native/src/App-with-trpc.tsx +0 -30
  89. package/templates/native/src/App.tsx +0 -8
  90. package/templates/native/src/utils/trpc.ts +0 -7
  91. package/templates/native/tsconfig.json +0 -28
  92. package/templates/shared/README.md +0 -135
  93. package/templates/shared/__tests__/shared.test.ts +0 -51
  94. package/templates/shared/jest.config.js +0 -22
  95. package/templates/shared/src/components/index.ts +0 -1
  96. package/templates/shared/src/index.ts +0 -14
  97. package/templates/shared/src/trpc/client.ts +0 -44
  98. package/templates/shared/tsconfig.json +0 -22
  99. package/templates/web/README.md +0 -131
  100. package/templates/web/__tests__/App.test.tsx +0 -342
  101. package/templates/web/__tests__/components.test.tsx +0 -564
  102. package/templates/web/index.html +0 -13
  103. package/templates/web/jest.config.js +0 -27
  104. package/templates/web/jest.setup.js +0 -24
  105. package/templates/web/src/App-with-trpc.tsx +0 -32
  106. package/templates/web/src/App.tsx +0 -14
  107. package/templates/web/src/components/TestDemo.tsx +0 -164
  108. package/templates/web/src/main.tsx +0 -25
  109. package/templates/web/src/utils/trpc.ts +0 -7
  110. package/templates/web/tsconfig.json +0 -26
  111. package/templates/web/vite.config.ts +0 -98
  112. package/templates/workspace/.devcontainer/Dockerfile +0 -26
  113. package/templates/workspace/.devcontainer/devcontainer.json +0 -113
  114. package/templates/workspace/.devcontainer/docker-compose.yml +0 -59
  115. package/templates/workspace/.devcontainer/figma-mcp.sh +0 -32
  116. package/templates/workspace/.devcontainer/setup.sh +0 -45
  117. package/templates/workspace/.dockerignore +0 -151
  118. package/templates/workspace/.env.example +0 -36
  119. package/templates/workspace/.env.production +0 -56
  120. package/templates/workspace/DOCKER.md +0 -0
  121. package/templates/workspace/Dockerfile +0 -111
  122. package/templates/workspace/README.md +0 -179
  123. package/templates/workspace/docker/nginx/prod.conf +0 -238
  124. package/templates/workspace/docker/nginx.conf +0 -131
  125. package/templates/workspace/docker/postgres/init.sql +0 -41
  126. package/templates/workspace/docker/prometheus/prometheus.yml +0 -52
  127. package/templates/workspace/docker-compose.prod.yml +0 -146
  128. package/templates/workspace/docker-compose.yml +0 -143
  129. package/templates/workspace/jest.config.js +0 -20
  130. package/templates/workspace/package.json +0 -38
  131. package/templates/workspace/setup.sh +0 -30
  132. package/templates/workspace/tsconfig.json +0 -31
  133. /package/dist/{templates/workspace → template}/.devcontainer/Dockerfile +0 -0
  134. /package/dist/{templates/workspace → template}/.devcontainer/devcontainer.json +0 -0
  135. /package/dist/{templates/workspace → template}/.devcontainer/docker-compose.yml +0 -0
  136. /package/dist/{templates/workspace → template}/.devcontainer/figma-mcp.sh +0 -0
  137. /package/dist/{templates/workspace → template}/.devcontainer/setup.sh +0 -0
  138. /package/dist/{templates/workspace → template}/.dockerignore +0 -0
  139. /package/dist/{templates/workspace → template}/.env.example +0 -0
  140. /package/dist/{templates/workspace → template}/DOCKER.md +0 -0
  141. /package/dist/{templates/workspace → template}/Dockerfile +0 -0
  142. /package/dist/{templates/workspace → template}/docker/nginx/prod.conf +0 -0
  143. /package/dist/{templates/workspace → template}/docker/nginx.conf +0 -0
  144. /package/dist/{templates/workspace → template}/docker/postgres/init.sql +0 -0
  145. /package/dist/{templates/workspace → template}/docker/prometheus/prometheus.yml +0 -0
  146. /package/dist/{templates/workspace → template}/docker-compose.prod.yml +0 -0
  147. /package/dist/{templates/workspace → template}/docker-compose.yml +0 -0
  148. /package/dist/{templates/workspace → template}/jest.config.js +0 -0
  149. /package/dist/{templates → template/packages}/api/.env.example +0 -0
  150. /package/dist/{templates → template/packages}/api/README.md +0 -0
  151. /package/dist/{templates → template/packages}/api/__tests__/api.test.ts +0 -0
  152. /package/dist/{templates → template/packages}/api/jest.config.js +0 -0
  153. /package/dist/{templates → template/packages}/api/jest.setup.js +0 -0
  154. /package/dist/{templates → template/packages}/api/src/context.ts +0 -0
  155. /package/dist/{templates → template/packages}/api/src/controllers/TestController.ts +0 -0
  156. /package/dist/{templates → template/packages}/api/src/index.ts +0 -0
  157. /package/dist/{templates → template/packages}/api/src/lib/crud.ts +0 -0
  158. /package/dist/{templates → template/packages}/api/src/lib/database.ts +0 -0
  159. /package/dist/{templates → template/packages}/api/src/router/index.ts +0 -0
  160. /package/dist/{templates → template/packages}/api/src/routers/test.ts +0 -0
  161. /package/dist/{templates → template/packages}/api/src/routers/user.example.ts +0 -0
  162. /package/dist/{templates → template/packages}/api/src/server.ts +0 -0
  163. /package/dist/{templates → template/packages}/api/src/trpc.ts +0 -0
  164. /package/dist/{templates → template/packages}/api/tsconfig.json +0 -0
  165. /package/dist/{templates → template/packages}/database/README.md +0 -0
  166. /package/dist/{templates → template/packages}/database/prisma/seed.ts +0 -0
  167. /package/dist/{templates → template/packages}/database/schema.prisma +0 -0
  168. /package/dist/{templates → template/packages}/database/src/index.ts +0 -0
  169. /package/dist/{templates → template/packages}/database/src/validators.ts +0 -0
  170. /package/dist/{templates → template/packages}/database/tsconfig.json +0 -0
  171. /package/dist/{templates/native → template/packages/mobile}/README.md +0 -0
  172. /package/dist/{templates/native → template/packages/mobile}/__tests__/App.test.tsx +0 -0
  173. /package/dist/{templates/native → template/packages/mobile}/__tests__/components.test.tsx +0 -0
  174. /package/dist/{templates/native → template/packages/mobile}/app.json +0 -0
  175. /package/dist/{templates/native → template/packages/mobile}/index.js +0 -0
  176. /package/dist/{templates/native → template/packages/mobile}/jest.config.js +0 -0
  177. /package/dist/{templates/native → template/packages/mobile}/jest.setup.js +0 -0
  178. /package/dist/{templates/native → template/packages/mobile}/src/App-with-trpc-and-shared.tsx +0 -0
  179. /package/dist/{templates/native → template/packages/mobile}/src/App-with-trpc.tsx +0 -0
  180. /package/{templates/native/src/App-with-trpc-and-shared.tsx → dist/template/packages/mobile/src/App.tsx} +0 -0
  181. /package/dist/{templates/native → template/packages/mobile}/src/utils/trpc.ts +0 -0
  182. /package/dist/{templates/native → template/packages/mobile}/tsconfig.json +0 -0
  183. /package/dist/{templates → template/packages}/shared/README.md +0 -0
  184. /package/dist/{templates → template/packages}/shared/__tests__/shared.test.ts +0 -0
  185. /package/dist/{templates → template/packages}/shared/jest.config.js +0 -0
  186. /package/{templates → dist/template/packages}/shared/src/components/App.tsx +0 -0
  187. /package/{templates → dist/template/packages}/shared/src/components/HelloWorld.tsx +0 -0
  188. /package/dist/{templates → template/packages}/shared/src/components/index.ts +0 -0
  189. /package/dist/{templates → template/packages}/shared/src/index.ts +0 -0
  190. /package/{templates → dist/template/packages}/shared/src/navigation/AppRouter.tsx +0 -0
  191. /package/dist/{templates → template/packages}/shared/src/trpc/client.ts +0 -0
  192. /package/dist/{templates → template/packages}/shared/tsconfig.json +0 -0
  193. /package/dist/{templates → template/packages}/web/README.md +0 -0
  194. /package/dist/{templates → template/packages}/web/__tests__/App.test.tsx +0 -0
  195. /package/dist/{templates → template/packages}/web/__tests__/components.test.tsx +0 -0
  196. /package/dist/{templates → template/packages}/web/index.html +0 -0
  197. /package/dist/{templates → template/packages}/web/jest.config.js +0 -0
  198. /package/dist/{templates → template/packages}/web/jest.setup.js +0 -0
  199. /package/dist/{templates → template/packages}/web/src/App-with-trpc-and-shared.tsx +0 -0
  200. /package/dist/{templates → template/packages}/web/src/App-with-trpc.tsx +0 -0
  201. /package/{templates/web/src/App-with-trpc-and-shared.tsx → dist/template/packages/web/src/App.tsx} +0 -0
  202. /package/dist/{templates → template/packages}/web/src/components/TestDemo.tsx +0 -0
  203. /package/dist/{templates → template/packages}/web/src/main.tsx +0 -0
  204. /package/dist/{templates → template/packages}/web/src/utils/trpc.ts +0 -0
  205. /package/dist/{templates → template/packages}/web/tsconfig.json +0 -0
  206. /package/dist/{templates → template/packages}/web/vite.config.ts +0 -0
  207. /package/dist/{templates/workspace → template}/setup.sh +0 -0
  208. /package/dist/{templates/workspace → template}/tsconfig.json +0 -0
@@ -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
@@ -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
- };
@@ -1,38 +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
- "test": "yarn workspaces foreach --include '@/*' run test",
12
- "test:watch": "yarn workspaces foreach --include '@/*' run test:watch",
13
- "test:coverage": "yarn workspaces foreach --include '@/*' run test:coverage",
14
- "test:ci": "yarn workspaces foreach --include '@/*' --parallel run test --passWithNoTests",
15
- "test:runner": "node scripts/test-runner.js",
16
- "test:help": "node scripts/test-runner.js help",
17
- "publish:all": "yarn workspaces foreach --include '@/*' npm publish",
18
- "version:patch": "yarn workspaces foreach --include '@/*' version patch",
19
- "version:minor": "yarn workspaces foreach --include '@/*' version minor",
20
- "version:major": "yarn workspaces foreach --include '@/*' version major",
21
- "build:all": "yarn workspaces foreach --include '@/*' run build",
22
- "lint:all": "yarn workspaces foreach --include '@/*' run lint",
23
- "type-check:all": "yarn workspaces foreach --include '@/*' run type-check"
24
- },
25
- "devDependencies": {
26
- "@babel/core": "^7.28.0",
27
- "@babel/preset-env": "^7.28.0",
28
- "@babel/preset-react": "^7.27.1",
29
- "@babel/preset-typescript": "^7.27.1",
30
- "@idealyst/mcp-server": "^{{idealystVersion}}",
31
- "@mobilenext/mobile-mcp": "^0.2.0",
32
- "@playwright/mcp": "^0.2.1",
33
- "@types/jest": "^29.5.12",
34
- "jest": "^29.7.0",
35
- "ts-jest": "^29.1.2",
36
- "typescript": "^5.0.0"
37
- }
38
- }
@@ -1,30 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Idealyst Framework Workspace Setup Script
4
- # This script sets up the development environment for your workspace
5
-
6
- echo "🏗️ Setting up Idealyst Framework workspace..."
7
-
8
- # Install dependencies
9
- echo "📦 Installing dependencies..."
10
- yarn install
11
-
12
- # Build all packages
13
- echo "🔨 Building packages..."
14
- yarn build:packages
15
-
16
- # Set up git hooks (if using husky)
17
- if [ -f "package.json" ] && grep -q "husky" package.json; then
18
- echo "🪝 Setting up git hooks..."
19
- yarn prepare
20
- fi
21
-
22
- echo "✅ Workspace setup complete!"
23
- echo ""
24
- echo "🚀 Quick start:"
25
- echo " • Run 'yarn dev' to start development mode"
26
- echo " • Run 'yarn build' to build all packages"
27
- echo " • Run 'yarn test' to run tests"
28
- echo " • Use 'idealyst create <type> <name>' to add new projects"
29
- echo ""
30
- echo "📚 Check README.md and DOCKER.md for more information."
@@ -1,31 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "lib": ["ES2020"],
5
- "module": "commonjs",
6
- "esModuleInterop": true,
7
- "allowSyntheticDefaultImports": true,
8
- "strict": true,
9
- "skipLibCheck": true,
10
- "forceConsistentCasingInFileNames": true,
11
- "declaration": true,
12
- "declarationMap": true,
13
- "sourceMap": true,
14
- "outDir": "./dist",
15
- "rootDir": "./src"
16
- },
17
- "include": [
18
- "packages/*/src/**/*"
19
- ],
20
- "exclude": [
21
- "node_modules",
22
- "dist",
23
- "**/*.test.ts",
24
- "**/*.spec.ts"
25
- ],
26
- "references": [
27
- {
28
- "path": "./packages/*"
29
- }
30
- ]
31
- }
File without changes