ef2b815bd7
wails3 dev 的 DEV 构建走 `npm run build:dev`,而 package.json 只有 build(此前只用过 task build/package,dev 从没跑通)。补 build:dev=vite build --mode development。 注:原生 dev/build 还有个 go.work 坑——desktop 不在工作区,直接 go build 需 GOWORK=off; 且 wails3 generate bindings -clean 会误删已提交 bindings(因模块不在 go.work 解析不到 services)。 可靠的本地跑原生窗口:cd sundynix-desktop && (cd frontend && npm run build) && GOWORK=off CGO_ENABLED=1 go build -tags production -buildvcs=false -o /tmp/jarvis_desktop . && /tmp/jarvis_desktop Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
38 lines
975 B
JSON
38 lines
975 B
JSON
{
|
|
"name": "sundynix-desktop-frontend",
|
|
"private": true,
|
|
"version": "0.1.1",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"build:dev": "vite build --mode development",
|
|
"preview": "vite preview",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@wailsio/runtime": "^3.0.0-alpha.97",
|
|
"@xyflow/react": "^12.3.0",
|
|
"lucide-react": "^1.17.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-force-graph-2d": "^1.29.1"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"@vitejs/plugin-react": "^4.3.0",
|
|
"autoprefixer": "^10.4.0",
|
|
"jsdom": "^29.1.1",
|
|
"postcss": "^8.4.0",
|
|
"tailwindcss": "^3.4.0",
|
|
"typescript": "^5.6.0",
|
|
"vite": "^5.4.0",
|
|
"vitest": "^4.1.9"
|
|
}
|
|
}
|