package.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {
  2. "name": "electron-egg",
  3. "version": "1.11.0",
  4. "description": "A fast, desktop software development framework",
  5. "main": "main.js",
  6. "softName": "electron-egg",
  7. "scripts": {
  8. "start": "electron .",
  9. "dev": "electron . --env=local",
  10. "test": "concurrently \"cd ./frontend && npm run serve\" \"electron . --env=local\"",
  11. "build-w": "electron-builder -w --ia32",
  12. "build-w-64": "electron-builder -w --x64",
  13. "build-m": "electron-builder -m",
  14. "build-m-arm64": "electron-builder -m --arm64",
  15. "build-l": "electron-builder -l deb tar.xz",
  16. "web-start": "egg-scripts start --daemon --title=electron-egg --ignore-stderr --env=prod --workers=1",
  17. "web-stop": "egg-scripts stop --title=electron-egg",
  18. "web-dev": "egg-bin dev",
  19. "rd": "node ./tools/replace_dist --dist_dir=./frontend/dist"
  20. },
  21. "build": {
  22. "productName": "electron-egg",
  23. "appId": "com.electron.egg",
  24. "copyright": "wallace5303",
  25. "directories": {
  26. "output": "out"
  27. },
  28. "asar": true,
  29. "files": [
  30. "**/*"
  31. ],
  32. "electronDownload": {
  33. "mirror": "https://npm.taobao.org/mirrors/electron/"
  34. },
  35. "nsis": {
  36. "oneClick": false,
  37. "allowElevation": true,
  38. "allowToChangeInstallationDirectory": true,
  39. "installerIcon": "./build/icons/icon.ico",
  40. "uninstallerIcon": "./build/icons/icon.ico",
  41. "installerHeaderIcon": "./build/icons/icon.ico",
  42. "createDesktopShortcut": true,
  43. "createStartMenuShortcut": true,
  44. "shortcutName": "demo"
  45. },
  46. "publish": [
  47. {
  48. "provider": "generic",
  49. "url": "https://github.com/wallace5303/electron-egg"
  50. }
  51. ],
  52. "mac": {
  53. "icon": "build/icons/icon.icns",
  54. "artifactName": "${productName}-macos-${version}.${ext}",
  55. "target": [
  56. "dmg",
  57. "zip"
  58. ]
  59. },
  60. "win": {
  61. "icon": "build/icons/icon.ico",
  62. "artifactName": "${productName}-windows-${version}.${ext}",
  63. "target": [
  64. {
  65. "target": "nsis"
  66. }
  67. ]
  68. },
  69. "linux": {
  70. "icon": "build/icons/256x256.png",
  71. "artifactName": "${productName}-linux-${version}.${ext}",
  72. "target": [
  73. "deb"
  74. ]
  75. }
  76. },
  77. "repository": "https://github.com/wallace5303/electron-egg.git",
  78. "keywords": [
  79. "Electron",
  80. "Egg"
  81. ],
  82. "author": "wallace5303, Inc <530353222@qq.com>",
  83. "license": "Apache",
  84. "devDependencies": {
  85. "autod": "^3.0.1",
  86. "autod-egg": "^1.1.0",
  87. "concurrently": "^6.1.0",
  88. "devtron": "^1.4.0",
  89. "egg-bin": "^4.12.3",
  90. "egg-ci": "^1.11.0",
  91. "egg-mock": "^3.21.0",
  92. "electron": "^12.0.10",
  93. "electron-builder": "22.10.4",
  94. "eslint": "^5.13.0",
  95. "eslint-config-egg": "^7.1.0",
  96. "eslint-plugin-prettier": "^3.0.1",
  97. "fs-extra": "^9.1.0",
  98. "prettier": "^1.16.4",
  99. "webstorm-disable-index": "^1.2.0"
  100. },
  101. "dependencies": {
  102. "dayjs": "^1.9.5",
  103. "egg": "^2.15.1",
  104. "egg-cors": "^2.2.0",
  105. "egg-jwt": "^3.1.6",
  106. "egg-scripts": "^2.13.0",
  107. "egg-view-ejs": "^2.0.0",
  108. "electron-is": "^3.0.0",
  109. "electron-log": "^4.2.2",
  110. "electron-updater": "^4.3.5",
  111. "get-port": "^5.1.1",
  112. "glob": "^7.1.6",
  113. "lodash": "^4.17.11",
  114. "lowdb": "^1.0.0",
  115. "semver": "^5.4.1",
  116. "socket.io": "^3.0.5",
  117. "socket.io-client": "^3.0.5"
  118. }
  119. }