90 lines
2.3 KiB
JSON
90 lines
2.3 KiB
JSON
{
|
|
"name": "ai-grading-assistant",
|
|
"version": "1.0.0",
|
|
"description": "AI 阅卷助手 - 桌面端 AI Copilot",
|
|
"main": "dist-electron/main/main.js",
|
|
"scripts": {
|
|
"dev": "concurrently -k \"npm run dev:renderer\" \"npm run dev:electron\"",
|
|
"dev:renderer": "vite",
|
|
"dev:electron": "wait-on http://localhost:5173 && tsc -p tsconfig.electron.json && cross-env NODE_ENV=development electron . --dev",
|
|
"build:renderer": "vite build",
|
|
"build:electron": "tsc -p tsconfig.electron.json",
|
|
"build": "npm run build:renderer && npm run build:electron",
|
|
"pack": "npm run build && electron-builder --win --dir",
|
|
"dist": "npm run build && electron-builder --win",
|
|
"start": "electron .",
|
|
"lint": "vue-tsc --noEmit --skipLibCheck"
|
|
},
|
|
"build": {
|
|
"appId": "com.ai-grading-assistant.app",
|
|
"productName": "AI阅卷助手",
|
|
"directories": {
|
|
"output": "release"
|
|
},
|
|
"electronDownload": {
|
|
"mirror": "https://npmmirror.com/mirrors/electron/"
|
|
},
|
|
"files": [
|
|
"dist/**/*",
|
|
"dist-electron/**/*",
|
|
"src/assets/icon.png",
|
|
"package.json"
|
|
],
|
|
"win": {
|
|
"target": [
|
|
{
|
|
"target": "portable",
|
|
"arch": ["x64"]
|
|
},
|
|
{
|
|
"target": "nsis",
|
|
"arch": ["x64"]
|
|
}
|
|
]
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"allowToChangeInstallationDirectory": true,
|
|
"createDesktopShortcut": true,
|
|
"shortcutName": "AI阅卷助手"
|
|
},
|
|
"asar": true,
|
|
"asarUnpack": [
|
|
"node_modules/better-sqlite3/**",
|
|
"node_modules/sharp/**"
|
|
]
|
|
},
|
|
"keywords": [
|
|
"ai",
|
|
"grading",
|
|
"education",
|
|
"electron"
|
|
],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"axios": "^1.18.1",
|
|
"better-sqlite3": "^12.11.1",
|
|
"electron-log": "^5.4.4",
|
|
"electron-store": "^11.0.2",
|
|
"element-plus": "^2.14.3",
|
|
"pinia": "^4.0.1",
|
|
"sharp": "^0.35.3",
|
|
"vue": "^3.5.39",
|
|
"vue-router": "^5.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/better-sqlite3": "^7.6.13",
|
|
"@types/node": "^26.1.1",
|
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
"concurrently": "^9.1.2",
|
|
"cross-env": "^7.0.3",
|
|
"electron": "^42.0.0",
|
|
"electron-builder": "^26.15.3",
|
|
"typescript": "^7.0.2",
|
|
"vite": "^8.1.4",
|
|
"vue-tsc": "^3.3.7",
|
|
"wait-on": "^8.0.3"
|
|
}
|
|
}
|