Files
AUTO-MAS-test/frontend/package.json
2025-09-10 23:07:52 +08:00

100 lines
2.8 KiB
JSON

{
"name": "frontend",
"private": true,
"version": "1.0.1",
"main": "dist-electron/main.js",
"scripts": {
"dev": "concurrently \"vite\" \"yarn watch:main\" \"yarn electron-dev\"",
"watch:main": "tsc -p tsconfig.electron.json --watch",
"electron-dev": "wait-on http://localhost:5173 && cross-env VITE_DEV_SERVER_URL=http://localhost:5173 electron .",
"build:main": "tsc -p tsconfig.electron.json",
"build": "vite build && yarn build:main && electron-builder",
"web": "vite",
"release": "vite build && yarn build:main && electron-builder --win --publish always"
},
"build": {
"asar": true,
"asarUnpack": [],
"extraMetadata": {
"env": "prod"
},
"appId": "top.auto-mas.frontend",
"productName": "AUTO-MAS",
"files": [
"dist/**",
"dist-electron/**",
"public/**",
"!src/**",
"!**/*.map"
],
"publish": [
{
"provider": "github",
"owner": "AUTO-MAS-Project",
"repo": "AUTO-MAS"
}
],
"extraResources": [
{ "from": "src/assets", "to": "assets", "filter": ["**/*"] }
],
"win": {
"requestedExecutionLevel": "requireAdministrator",
"target": [
{ "target": "nsis", "arch": ["x64"] },
{ "target": "zip", "arch": ["x64"] }
],
"icon": "public/AUTO-MAS.ico",
"artifactName": "AUTO-MAS-Setup-${version}-${arch}.${ext}"
},
"nsis": {
"oneClick": false,
"perMachine": true,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"shortcutName": "AUTO-MAS",
"differentialPackage": true
}
},
"dependencies": {
"@ant-design/icons-vue": "^7.0.1",
"@types/adm-zip": "^0.5.7",
"@types/markdown-it": "^14.1.2",
"adm-zip": "^0.5.16",
"ant-design-vue": "4.x",
"axios": "^1.11.0",
"dayjs": "^1.11.13",
"electron-log": "^5.4.3",
"form-data": "^4.0.4",
"markdown-it": "^14.1.0",
"vue": "^3.5.17",
"vue-router": "4"
},
"devDependencies": {
"@types/node": "22.17.1",
"@typescript-eslint/eslint-plugin": "^8.38.0",
"@typescript-eslint/parser": "^8.38.0",
"@vitejs/plugin-vue": "^6.0.1",
"@vue/tsconfig": "^0.7.0",
"concurrently": "^9.2.0",
"cross-env": "^10.0.0",
"electron": "^37.2.5",
"electron-builder": "^26.0.12",
"eslint": "^9.32.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.3",
"eslint-plugin-vue": "^10.4.0",
"openapi-typescript-codegen": "^0.29.0",
"prettier": "^3.6.2",
"typescript": "^5.9.2",
"vite": "^7.0.4",
"vite-plugin-eslint": "^1.8.1",
"vue-eslint-parser": "^10.2.0",
"vue-tsc": "^2.2.12",
"wait-on": "^8.0.4"
},
"resolutions": {
"@types/node": "22.17.1"
},
"packageManager": "yarn@4.9.1"
}