package.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {
  2. "name": "jingmiao",
  3. "private": true,
  4. "version": "0.0.2",
  5. "main": "dist-electron/main/index.js",
  6. "scripts": {
  7. "dev": "vite",
  8. "build": "rimraf dist-electron && vite build && electron-builder",
  9. "build:win": "rimraf dist-electron && vite build && electron-builder --win",
  10. "tscBuild": "tsc && rimraf dist-electron && vite build && electron-builder",
  11. "vitebuild": "vite build",
  12. "serve": "vite preview"
  13. },
  14. "dependencies": {
  15. "@ant-design/icons": "^5.5.1",
  16. "antd": "^5.22.1",
  17. "axios": "^1.7.7",
  18. "cookie-parser": "^1.4.7",
  19. "cors": "^2.8.5",
  20. "dayjs": "^1.11.13",
  21. "electron-log": "^5.2.2",
  22. "electron-store": "^8.2.0",
  23. "express": "^4.21.1",
  24. "express-session": "^1.18.1",
  25. "jingmiao": "file:",
  26. "lucide-react": "^0.486.0",
  27. "nprogress": "^0.2.0",
  28. "qs": "^6.13.0",
  29. "react": "^18.3.1",
  30. "react-dom": "^18.3.1",
  31. "react-router-dom": "^6.28.0",
  32. "sass": "1.69.5",
  33. "sky": "file:",
  34. "zustand": "^5.0.3"
  35. },
  36. "devDependencies": {
  37. "@eslint/js": "^9.14.0",
  38. "@types/react": "^18.3.12",
  39. "@types/react-dom": "^18.3.1",
  40. "@vitejs/plugin-react": "^4.3.3",
  41. "autoprefixer": "^10.4.20",
  42. "electron": "^22.3.27",
  43. "electron-builder": "^25.1.8",
  44. "eslint": "^9.14.0",
  45. "eslint-plugin-react-hooks": "^5.0.0",
  46. "eslint-plugin-react-refresh": "^0.4.14",
  47. "globals": "^15.12.0",
  48. "rimraf": "^6.0.1",
  49. "tailwindcss": "^3.4.14",
  50. "typescript": "~5.6.3",
  51. "typescript-eslint": "^8.14.0",
  52. "vite": "^5.4.11",
  53. "vite-plugin-compression": "^0.5.1",
  54. "vite-plugin-electron": "^0.28.8",
  55. "vite-plugin-electron-renderer": "^0.14.6"
  56. },
  57. "build": {
  58. "appId": "com.electron.electronvitereact",
  59. "productName": "jingmiao",
  60. "asar": true,
  61. "copyright": "Copyright © 2022 electron",
  62. "directories": {
  63. "output": "release/${version}"
  64. },
  65. "files": [
  66. "./package.json",
  67. "./dist-electron"
  68. ],
  69. "mac": {
  70. "artifactName": "${productName}_${version}.${ext}",
  71. "target": [
  72. "dmg"
  73. ]
  74. },
  75. "win": {
  76. "icon": "public/logo.ico",
  77. "target": [
  78. {
  79. "target": "nsis",
  80. "arch": [
  81. "x64"
  82. ]
  83. }
  84. ],
  85. "artifactName": "${productName}_${version}.${ext}"
  86. },
  87. "nsis": {
  88. "oneClick": false,
  89. "allowElevation": true,
  90. "allowToChangeInstallationDirectory": true,
  91. "installerIcon": "public/logo.ico",
  92. "uninstallerIcon": "public/logo.ico",
  93. "installerHeader": "public/logo.ico",
  94. "installerHeaderIcon": "public/logo.ico",
  95. "uninstallDisplayName": "${productName}${version}",
  96. "createDesktopShortcut": true,
  97. "createStartMenuShortcut": true,
  98. "shortcutName": "菁苗健康",
  99. "deleteAppDataOnUninstall": false,
  100. "runAfterFinish": true,
  101. "menuCategory": false
  102. },
  103. "releaseInfo": {
  104. "releaseNotes": "版本更新的具体内容"
  105. }
  106. }
  107. }