7b05974ca4
Upgrade admin-web and desktop-client onto Vite 7 / Vitest 4 with the matching @vitejs/plugin-vue 6 and electron-vite 5, and introduce manualChunks plus gzip/brotli compression so the admin bundle ships in smaller, route-aware pieces. ANALYZE=true emits a treemap via rollup-plugin-visualizer; the generated stats.html is gitignored. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
126 lines
3.9 KiB
JSON
126 lines
3.9 KiB
JSON
{
|
|
"name": "@geo/desktop-client",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "GEO Rankly Desktop — account health, monitor scheduler, and publish dispatch client.",
|
|
"author": {
|
|
"name": "GEO Rankly",
|
|
"email": "support@geo-rankly.local"
|
|
},
|
|
"type": "module",
|
|
"main": "out/main/bootstrap.cjs",
|
|
"scripts": {
|
|
"dev": "unset ELECTRON_RUN_AS_NODE && electron-vite dev --inspect=9229",
|
|
"build": "electron-vite build",
|
|
"package:mac": "electron-builder --mac --arm64",
|
|
"test": "vitest run",
|
|
"typecheck": "vue-tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"better-sqlite3": "^12.8.0",
|
|
"electron-updater": "^6.0.0",
|
|
"marked": "^17.0.5",
|
|
"pino": "^9.0.0",
|
|
"playwright-core": "^1.55.0",
|
|
"ws": "^8.20.0"
|
|
},
|
|
"devDependencies": {
|
|
"@ant-design/icons-vue": "^7.0.1",
|
|
"@geo/http-client": "workspace:*",
|
|
"@geo/publisher-platforms": "workspace:*",
|
|
"@geo/shared-types": "workspace:*",
|
|
"@geo/ui-shared": "workspace:*",
|
|
"@playwright/test": "^1.0.0",
|
|
"@types/node": "^24.0.0",
|
|
"@types/ws": "^8.18.1",
|
|
"@vitejs/plugin-vue": "^6.0.6",
|
|
"ant-design-vue": "^4.2.6",
|
|
"electron": "41.2.0",
|
|
"electron-builder": "^25.0.0",
|
|
"electron-vite": "^5.0.0",
|
|
"typescript": "^5.9.3",
|
|
"unplugin-vue-components": "^32.0.0",
|
|
"vite": "^7.3.2",
|
|
"vitest": "^4.1.5",
|
|
"vue": "^3.5.31",
|
|
"vue-router": "^4.5.1",
|
|
"vue-tsc": "^3.2.6"
|
|
},
|
|
"build": {
|
|
"appId": "com.geo.rankly.desktop",
|
|
"productName": "GEO Rankly Desktop",
|
|
"copyright": "Copyright © 2026 GEO Rankly",
|
|
"directories": {
|
|
"output": "release",
|
|
"buildResources": "build"
|
|
},
|
|
"compression": "maximum",
|
|
"removePackageScripts": true,
|
|
"removePackageKeywords": true,
|
|
"asar": true,
|
|
"asarUnpack": [
|
|
"**/node_modules/better-sqlite3/build/Release/**",
|
|
"**/node_modules/better-sqlite3/lib/**",
|
|
"**/node_modules/bindings/**",
|
|
"**/node_modules/file-uri-to-path/**",
|
|
"**/node_modules/playwright-core/lib/**",
|
|
"**/node_modules/playwright-core/bin/**"
|
|
],
|
|
"files": [
|
|
"out/**/*",
|
|
"package.json",
|
|
"!**/*.map",
|
|
"!**/*.ts",
|
|
"!**/*.tsx",
|
|
"!**/*.md",
|
|
"!**/*.markdown",
|
|
"!**/{test,tests,__tests__,__mocks__,example,examples,docs,doc,demo,samples,man}/**",
|
|
"!**/{LICENSE,LICENSE.*,license,CHANGELOG,CHANGELOG.*,README,README.*,HISTORY,HISTORY.*,AUTHORS,CONTRIBUTING}*",
|
|
"!**/.*",
|
|
"!**/node_modules/.bin/**",
|
|
"!**/node_modules/*/{Makefile,Gulpfile.js,Gruntfile.js,CMakeLists.txt,*.coffee,*.flow,*.c,*.cc,*.cpp,*.h,*.hpp,*.gyp,*.gypi,*.tgz,binding.gyp}",
|
|
"!**/node_modules/**/{*.d.ts,tsconfig*.json,jest.config*,rollup.config*,webpack.config*,vite.config*}",
|
|
"!**/node_modules/better-sqlite3/{deps,src,docs,benchmark}/**",
|
|
"!**/node_modules/better-sqlite3/{test_extension.c,download.sh,*.gyp,*.gypi}",
|
|
"!**/node_modules/playwright-core/{types,ThirdPartyNotices.txt}/**",
|
|
"!**/node_modules/**/*.{c,cc,cpp,h,hpp,cmake,m4,am,sh}"
|
|
],
|
|
"mac": {
|
|
"category": "public.app-category.productivity",
|
|
"identity": null,
|
|
"electronLanguages": ["en", "zh_CN"],
|
|
"target": [
|
|
{ "target": "dmg", "arch": ["arm64"] },
|
|
{ "target": "zip", "arch": ["arm64"] }
|
|
],
|
|
"notarize": false,
|
|
"hardenedRuntime": false,
|
|
"gatekeeperAssess": false
|
|
},
|
|
"dmg": {
|
|
"format": "ULFO",
|
|
"contents": [
|
|
{ "x": 130, "y": 220 },
|
|
{ "x": 410, "y": 220, "type": "link", "path": "/Applications" }
|
|
]
|
|
},
|
|
"win": {
|
|
"target": [
|
|
{ "target": "nsis", "arch": ["x64"] }
|
|
]
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"perMachine": false,
|
|
"allowToChangeInstallationDirectory": true
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
{ "target": "AppImage", "arch": ["x64"] }
|
|
],
|
|
"category": "Office"
|
|
},
|
|
"publish": null
|
|
}
|
|
}
|