package.json 3.3 KB

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