package.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "name": "@media-manager/client",
  3. "version": "1.0.0",
  4. "description": "多自媒体平台管理系统桌面客户端",
  5. "main": "dist-electron/main.js",
  6. "scripts": {
  7. "dev": "vite",
  8. "build": "vue-tsc --noEmit && vite build && electron-builder",
  9. "build:vite": "vite build",
  10. "preview": "vite preview",
  11. "electron:dev": "vite --mode electron",
  12. "electron:build": "vite build && electron-builder",
  13. "lint": "eslint src --ext .ts,.vue",
  14. "generate-icons": "node scripts/generate-icons.js"
  15. },
  16. "dependencies": {
  17. "@media-manager/shared": "workspace:*",
  18. "vue": "^3.4.15",
  19. "vue-router": "^4.2.5",
  20. "pinia": "^2.1.7",
  21. "element-plus": "^2.5.3",
  22. "@element-plus/icons-vue": "^2.3.1",
  23. "axios": "^1.6.5",
  24. "dayjs": "^1.11.10",
  25. "echarts": "^5.4.3",
  26. "vue-echarts": "^6.6.8",
  27. "vue-i18n": "^9.9.0"
  28. },
  29. "devDependencies": {
  30. "@types/node": "^20.10.6",
  31. "@vitejs/plugin-vue": "^5.0.3",
  32. "@vue/tsconfig": "^0.5.1",
  33. "electron": "^28.1.3",
  34. "electron-builder": "^24.9.1",
  35. "sass": "^1.69.7",
  36. "typescript": "^5.3.3",
  37. "unplugin-auto-import": "^0.17.3",
  38. "unplugin-vue-components": "^0.26.0",
  39. "vite": "^5.0.11",
  40. "vite-plugin-electron": "^0.28.0",
  41. "vite-plugin-electron-renderer": "^0.14.5",
  42. "vue-tsc": "^1.8.27",
  43. "eslint": "^8.56.0",
  44. "@typescript-eslint/eslint-plugin": "^6.18.0",
  45. "@typescript-eslint/parser": "^6.18.0",
  46. "eslint-plugin-vue": "^9.20.0",
  47. "sharp": "^0.34.5"
  48. },
  49. "build": {
  50. "appId": "com.media-manager.app",
  51. "productName": "多平台媒体管理",
  52. "directories": {
  53. "output": "release"
  54. },
  55. "files": [
  56. "dist/**/*",
  57. "dist-electron/**/*"
  58. ],
  59. "extraResources": [
  60. {
  61. "from": "public/icons",
  62. "to": "icons"
  63. }
  64. ],
  65. "win": {
  66. "target": ["nsis", "portable"],
  67. "icon": "build/icon.png"
  68. },
  69. "mac": {
  70. "target": ["dmg", "zip"],
  71. "icon": "build/icon.png"
  72. },
  73. "linux": {
  74. "target": ["AppImage", "deb"],
  75. "icon": "build/icon.png"
  76. },
  77. "nsis": {
  78. "oneClick": false,
  79. "allowToChangeInstallationDirectory": true,
  80. "createDesktopShortcut": true
  81. }
  82. }
  83. }