package.json 2.9 KB

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