package.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. {
  2. "name": "v3-electron-vite",
  3. "version": "4.4.0",
  4. "description": "v3-electron-client",
  5. "author": "nevlf<2863180001@qq.com>",
  6. "main": "dist/index.js",
  7. "engines": {
  8. "node": ">=20.0.0"
  9. },
  10. "env": {
  11. "host": "127.0.0.1",
  12. "port": 13333
  13. },
  14. "scripts": {
  15. "dev": "vite",
  16. "build": "vite build && electron-builder",
  17. "build:dir": "vite build && electron-builder --dir",
  18. "build:linux": "vite build && electron-builder --linux",
  19. "build:macos": "vite build && electron-builder --macos",
  20. "build:win-x64": "vite build && electron-builder --win --x64",
  21. "build:win-x32": "vite build && electron-builder --win --ia32",
  22. "lint:eslint": "eslint --cache --max-warnings 0 \"{script,src,types}/**/*.{vue,js,jsx,ts,tsx}\" --fix",
  23. "lint:prettier": "prettier --write \"{script,src,types}/**/*.{vue,js,jsx,ts,tsx,json,css,less,scss,html,md}\"",
  24. "lint": "pnpm lint:eslint && pnpm lint:prettier",
  25. "prepare": "husky"
  26. },
  27. "build": {
  28. "productName": "v3-electron-vite",
  29. "appId": "com.app.v3-electron-vite",
  30. "directories": {
  31. "output": "release/v${version}-${platform}"
  32. },
  33. "files": [
  34. "dist/**/*",
  35. "static/**/*"
  36. ],
  37. "extraResources": [
  38. "./exe/**"
  39. ],
  40. "publish": [
  41. {
  42. "provider": "generic",
  43. "url": ""
  44. }
  45. ],
  46. "asar": true,
  47. "nsis": {
  48. "oneClick": false,
  49. "perMachine": true,
  50. "shortcutName": "${productName}",
  51. "uninstallDisplayName": "${productName}",
  52. "runAfterFinish": true,
  53. "deleteAppDataOnUninstall": true,
  54. "allowToChangeInstallationDirectory": true
  55. },
  56. "win": {
  57. "icon": "static/icons/logo_256x256.ico",
  58. "artifactName": "${productName} v${version} ${arch}.${ext}",
  59. "requestedExecutionLevel": "requireAdministrator"
  60. },
  61. "dmg": {
  62. "sign": false
  63. },
  64. "mac": {
  65. "target": [
  66. "dmg",
  67. "zip"
  68. ],
  69. "icon": "static/icons/logo_256x256.icns",
  70. "artifactName": "${productName} v${version} MacOS ${arch}.${ext}",
  71. "identity": null,
  72. "hardenedRuntime": true,
  73. "gatekeeperAssess": false
  74. },
  75. "linux": {
  76. "target": [
  77. "AppImage",
  78. "deb"
  79. ],
  80. "icon": "static/icons/logo_256x256.png",
  81. "artifactName": "${productName} v${version} ${platform} ${arch}.${ext}",
  82. "desktop": {
  83. "Icon": "/opt/v3-electron-vite/resources/app/static/icons/logo_256x256.png"
  84. }
  85. }
  86. },
  87. "dependencies": {
  88. "@electron/remote": "2.1.2",
  89. "@element-plus/icons-vue": "2.3.1",
  90. "axios": "1.7.7",
  91. "dayjs": "1.11.13",
  92. "electron-log": "5.2.0",
  93. "element-plus": "2.8.2",
  94. "execa": "^9.4.0",
  95. "lodash-es": "4.17.21",
  96. "mitt": "3.0.1",
  97. "normalize.css": "8.0.1",
  98. "nprogress": "0.2.0",
  99. "path-browserify": "1.0.1",
  100. "path-to-regexp": "7.2.0",
  101. "pinia": "2.2.2",
  102. "screenfull": "6.0.2",
  103. "vue": "3.5.3",
  104. "vue-router": "4.4.3",
  105. "vxe-pc-ui": "^4.1.21",
  106. "vxe-table": "4.7.23",
  107. "vxe-table-plugin-element": "4.0.4",
  108. "xe-utils": "3.5.30"
  109. },
  110. "devDependencies": {
  111. "@types/lodash-es": "4.17.12",
  112. "@types/node": "22.5.4",
  113. "@types/nprogress": "0.2.3",
  114. "@types/path-browserify": "1.0.3",
  115. "@typescript-eslint/eslint-plugin": "8.5.0",
  116. "@typescript-eslint/parser": "8.5.0",
  117. "@vitejs/plugin-vue": "5.1.3",
  118. "@vitejs/plugin-vue-jsx": "4.0.1",
  119. "@vue/eslint-config-prettier": "9.0.0",
  120. "@vue/eslint-config-typescript": "13.0.0",
  121. "electron": "32.0.2",
  122. "electron-builder": "25.0.5",
  123. "eslint": "8.57.0",
  124. "eslint-plugin-prettier": "5.2.1",
  125. "eslint-plugin-vue": "9.28.0",
  126. "husky": "9.1.5",
  127. "lint-staged": "15.2.10",
  128. "prettier": "3.3.3",
  129. "sass": "1.78.0",
  130. "typescript": "5.5.4",
  131. "unocss": "0.62.3",
  132. "vite": "5.4.3",
  133. "vite-electron-plugin": "0.8.3",
  134. "vite-plugin-svg-icons": "2.0.1",
  135. "vite-svg-loader": "5.1.0",
  136. "vue-eslint-parser": "9.4.3",
  137. "vue-tsc": "2.1.6"
  138. },
  139. "lint-staged": {
  140. "*.{vue,js,jsx,ts,tsx}": [
  141. "eslint --fix",
  142. "prettier --write"
  143. ],
  144. "*.{css,less,scss,html,md}": [
  145. "prettier --write"
  146. ],
  147. "package.json": [
  148. "prettier --write"
  149. ]
  150. },
  151. "keywords": [
  152. "vue3",
  153. "vite",
  154. "electron",
  155. "pinia",
  156. "rollup"
  157. ],
  158. "license": "MIT"
  159. }