Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
31 lines (31 loc) · 1.89 KB
/
Copy pathpackage.json
File metadata and controls
31 lines (31 loc) · 1.89 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
{
"private": true,
"name": "stardust-workspace",
"version": "0.0.0",
"description": "星尘前端工作区,聚合魔方 Cube 前端公共模块与星尘 Web 应用",
"packageManager": "pnpm@9.15.0",
"scripts": {
"//build:packages": "Cube 包实际名为 @newlifex/*(非 @cube/*),故按目录过滤,改名也不会失效。",
"build:packages": "pnpm -r --filter \"./Cube/packages/*\" build",
"dev": "pnpm --filter stardust-web-vue dev",
"dev:api": "dotnet run --project Stardust.WebApi/Stardust.WebApi.csproj --urls http://localhost:6681",
"//build": "先重建 Cube 工作区包(dist 为 git 忽略产物),再由 vue-tsc/vite 消费,避免 dist 陈旧导致类型与运行时异常。",
"build": "pnpm run build:packages && pnpm --filter stardust-web-vue build",
"//build:all": "一键打包前后端(详见 Stardust.Web.Vue/scripts/build-all.mjs):构建前端(重建 Cube 包 + vue-tsc + vite)→ dist 同步到 Stardust.WebApi/wwwroot(嵌入源,gitignore)→ dotnet publish 后端(前端嵌入 DLL,产物在 Bin/WebApi/publish,不覆盖顶层运行目录 Bin/WebApi)。",
"build:all": "node Stardust.Web.Vue/scripts/build-all.mjs",
"preview": "pnpm --filter stardust-web-vue preview",
"check": "pnpm run build:packages && pnpm --filter stardust-web-vue run check",
"e2e": "pnpm --filter stardust-web-vue run test:e2e",
"//test:unit": "Vitest 单元/组件测试(详见 Doc/DEV-07-前端测试规范.md)",
"test:unit": "pnpm --filter stardust-web-vue run test:unit",
"//test:ct": "Playwright CT 视觉回归(自建 Gallery 模式,独立端口 5190)",
"test:ct": "pnpm --filter stardust-web-vue run test:ct",
"test:coverage": "pnpm --filter stardust-web-vue run test:coverage"
},
"license": "MIT",
"pnpm": {
"patchedDependencies": {
"element-plus": "patches/element-plus.patch"
}
}
}