package.json 2.9 KB

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