refactor: establish unified viewer workspaces
This commit is contained in:
+16
-13
@@ -1,23 +1,22 @@
|
||||
{
|
||||
"name": "dwg-dxf-viewer-sample",
|
||||
"name": "hmwebviewer-workspace",
|
||||
"private": true,
|
||||
"version": "0.1.0",
|
||||
"description": "Standalone sample: compose acadrust-dwg + dxf-parser + Viewer2D (sibling of hmwebviewer)",
|
||||
"version": "0.2.0",
|
||||
"type": "module",
|
||||
"workspaces": [
|
||||
"apps/*",
|
||||
"packages/*"
|
||||
],
|
||||
"scripts": {
|
||||
"dev": "vite --port 5173 --strictPort",
|
||||
"build": "tsc --noEmit && vite build",
|
||||
"preview": "vite preview",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vitest run",
|
||||
"test:unit": "vitest run tests/viewer2d.contract.test.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@hmwebviewer/viewer2d": "workspace:*",
|
||||
"three": "0.185.1"
|
||||
"dev:2d": "npm --workspace @hmwebviewer/viewer-2d-sample run dev",
|
||||
"dev:3d": "npm --workspace @hmwebviewer/viewer-3d run dev",
|
||||
"build": "npm run build --workspaces --if-present",
|
||||
"typecheck": "npm run typecheck --workspaces --if-present",
|
||||
"test": "npm run test:unit",
|
||||
"test:unit": "vitest run",
|
||||
"test:e2e": "playwright test",
|
||||
"verify": "npm run typecheck && npm run test:unit && npm run build && npm run test:e2e",
|
||||
"postinstall": "npm --workspace @hmwebviewer/viewer-3d run stage:decoders"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "1.62.0",
|
||||
@@ -25,5 +24,9 @@
|
||||
"typescript": "7.0.2",
|
||||
"vite": "8.1.5",
|
||||
"vitest": "4.1.10"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=24.0.0",
|
||||
"npm": ">=11.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user