-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathpackage.json
More file actions
148 lines (148 loc) · 7.03 KB
/
package.json
File metadata and controls
148 lines (148 loc) · 7.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"name": "hai3-monorepo",
"version": "0.1.0",
"description": "HAI3: Human-driven development, AI-assisted, well structured and polished framework for SaaS control panels",
"private": true,
"type": "module",
"engines": {
"node": ">=22.0.0",
"npm": ">=10.0.0"
},
"packageManager": "npm@10.9.4",
"workspaces": [
"packages/*",
"internal/*",
"packages/cli/template-sources/project/eslint-plugin-local"
],
"scripts": {
"generate:mfe-manifests": "npx tsx scripts/generate-mfe-manifests.ts",
"dev": "npm run generate:mfe-manifests && npm run generate:colors && vite",
"dev:mfe:demo": "cd src/mfe_packages/demo-mfe && npm run dev",
"dev:mfe:blank": "cd src/mfe_packages/_blank-mfe && npm run dev",
"dev:all": "npm run generate:mfe-manifests && npx tsx scripts/dev-all.ts",
"check:mcp": "npx tsx packages/cli/template-sources/project/scripts/check-mcp.ts",
"build": "npm run generate:mfe-manifests && npm run build:packages && npm run generate:colors && vite build",
"docs:dev": "npm run docs:dev --workspace=@hai3/docs",
"docs:build": "npm run docs:build --workspace=@hai3/docs",
"docs:preview": "npm run docs:preview --workspace=@hai3/docs",
"build:packages": "npm run build:packages:config && npm run build:packages:sdk && npm run build:packages:framework && npm run build:packages:react && npm run build:packages:studio && npm run build:packages:cli",
"build:packages:config": "npm run build --workspace=@hai3/eslint-config",
"build:packages:sdk": "npm run build --workspace=@hai3/state --workspace=@hai3/screensets --workspace=@hai3/api --workspace=@hai3/i18n",
"build:packages:framework": "npm run build --workspace=@hai3/framework",
"build:packages:react": "npm run build --workspace=@hai3/react",
"build:packages:studio": "npm run build --workspace=@hai3/studio",
"build:packages:cli": "npm run build --workspace=@hai3/cli",
"lint": "npm run build --workspace=eslint-plugin-local && eslint . --max-warnings 0",
"preview": "vite preview",
"type-check": "tsc --noEmit",
"type-check:packages": "npm run type-check:packages:sdk && npm run type-check:packages:framework && npm run type-check:packages:react && npm run type-check:packages:studio && npm run type-check:packages:cli",
"type-check:packages:sdk": "npm run type-check --workspace=@hai3/state --workspace=@hai3/screensets --workspace=@hai3/api --workspace=@hai3/i18n",
"type-check:packages:framework": "npm run type-check --workspace=@hai3/framework",
"type-check:packages:react": "npm run type-check --workspace=@hai3/react",
"type-check:packages:studio": "npm run type-check --workspace=@hai3/studio",
"type-check:packages:cli": "npm run type-check --workspace=@hai3/cli",
"clean:artifacts": "rm -rf packages/*/dist packages/cli/template-sources/project/eslint-plugin-local/dist dist .nyc_output coverage .eslintcache",
"clean:modules": "rm -rf node_modules",
"clean:deps": "npm run clean:modules && npm ci",
"clean": "npm run clean:artifacts && npm run clean:modules",
"clean:build": "npm run clean:artifacts && npm run build",
"clean:build:packages": "npm run clean:artifacts && npm run build:packages",
"generate:colors": "npx tsx packages/cli/template-sources/project/scripts/generate-colors.ts",
"arch:check": "npx tsx scripts/test-architecture.ts",
"arch:deps": "npx dependency-cruiser src/ packages/ --config .dependency-cruiser.cjs --output-type err-long",
"arch:sdk": "npx tsx scripts/sdk-layer-tests.ts",
"arch:layers": "npx tsx scripts/verify-layered-configs.ts",
"arch:plugins": "npx tsx scripts/test-plugin-system.ts",
"lint:sdk": "eslint packages/state/src packages/screensets/src packages/api/src packages/i18n/src --max-warnings 0",
"lint:framework": "eslint packages/framework/src --max-warnings 0",
"lint:react": "eslint packages/react/src --max-warnings 0",
"arch:deps:sdk": "npx dependency-cruiser packages/state/src packages/screensets/src packages/api/src packages/i18n/src --config internal/depcruise-config/sdk.cjs --output-type err-long",
"arch:deps:framework": "npx dependency-cruiser packages/framework/src --config internal/depcruise-config/framework.cjs --output-type err-long",
"arch:deps:react": "npx dependency-cruiser packages/react/src --config internal/depcruise-config/react.cjs --output-type err-long",
"arch:unused": "knip --no-exit-code",
"arch:unused:strict": "knip",
"arch:graph": "npx dependency-cruiser src/ packages/ --config .dependency-cruiser.cjs --output-type dot | dot -T svg -o dependency-graph.svg",
"arch:dot": "npx dependency-cruiser src/ packages/ --config .dependency-cruiser.cjs --output-type dot > dependency-graph.dot && echo '✅ DOT file saved to dependency-graph.dot (view with any DOT viewer or online tools)'",
"test:prompts": "npx promptfoo eval --config .ai/tests/promptfoo.yaml",
"prepare": "husky"
},
"dependencies": {
"@hai3/api": "*",
"@hai3/framework": "*",
"@hai3/i18n": "*",
"@hai3/react": "*",
"@hai3/screensets": "*",
"@hai3/state": "*",
"@hookform/resolvers": "5.2.2",
"@iconify/react": "^6.0.2",
"@radix-ui/react-avatar": "^1.1.11",
"@radix-ui/react-slot": "^1.2.4",
"@reduxjs/toolkit": "2.11.2",
"clsx": "^2.1.1",
"date-fns": "4.1.0",
"input-otp": "1.4.2",
"lodash": "4.17.21",
"lucide-react": "0.563.0",
"react": "19.2.4",
"react-day-picker": "9.12.0",
"react-dom": "19.2.4",
"react-hook-form": "7.68.0",
"sonner": "^2.0.7",
"tailwind-merge": "^3.5.0",
"tailwindcss-animate": "1.0.7",
"zod": "^4.0.0"
},
"overrides": {
"pg-cloudflare": "1.2.7",
"pg-connection-string": "2.9.1",
"pg-pool": "3.10.1",
"pg-protocol": "1.10.3",
"@swc/core": "1.15.7",
"promptfoo": {
"@swc/core-darwin-arm64": "1.15.7",
"@swc/core-darwin-x64": "1.15.7",
"@swc/core-linux-x64-gnu": "1.15.7",
"@swc/core-linux-x64-musl": "1.15.7",
"@swc/core-win32-x64-msvc": "1.15.7"
}
},
"devDependencies": {
"@eslint/js": "9.27.0",
"@hai3/studio": "*",
"@originjs/vite-plugin-federation": "^1.4.1",
"@types/lodash": "4.17.20",
"@types/react": "19.0.8",
"@types/react-dom": "19.0.3",
"@vitejs/plugin-react": "4.3.4",
"autoprefixer": "10.4.23",
"concurrently": "^9.2.1",
"dependency-cruiser": "17.3.2",
"eslint": "9.27.0",
"eslint-plugin-react-hooks": "5.0.0",
"eslint-plugin-unused-imports": "4.1.4",
"globals": "15.12.0",
"husky": "^9.1.7",
"js-yaml": "4.1.0",
"knip": "5.68.0",
"lint-staged": "^16.2.7",
"postcss": "8.4.35",
"promptfoo": "^0.120.16",
"tailwindcss": "3.4.1",
"tsx": "4.20.6",
"typescript": "5.4.2",
"typescript-eslint": "8.32.1",
"vite": "6.4.1"
},
"lint-staged": {
"*": [
"node scripts/lint-staged-checks.mjs trailing-whitespace",
"node scripts/lint-staged-checks.mjs end-of-file"
],
"*.{json}": [
"node scripts/lint-staged-checks.mjs check-json"
],
"*.{yaml,yml}": [
"node scripts/lint-staged-checks.mjs check-yaml"
]
}
}