package.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. {
  2. "name": "elctronDemo",
  3. "version": "0.0.4",
  4. "author": "xiaoyuzhang <771799477@qq.com>",
  5. "description": "An electron-vue project",
  6. "license": null,
  7. "main": "./dist/electron/main.js",
  8. "scripts": {
  9. "build": "node .electron-vue/build.js && electron-builder",
  10. "build:dir": "node .electron-vue/build.js && electron-builder --dir",
  11. "build:clean": "cross-env BUILD_TARGET=clean node .electron-vue/build.js",
  12. "build:web": "cross-env BUILD_TARGET=web node .electron-vue/build.js",
  13. "dev": "node .electron-vue/dev-runner.js",
  14. "e2e": "npm run pack && mocha test/e2e",
  15. "pack": "npm run pack:main && npm run pack:renderer",
  16. "pack:main": "cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.main.config.js",
  17. "pack:renderer": "cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.renderer.config.js",
  18. "test": "npm run unit && npm run e2e",
  19. "unit": "karma start test/unit/karma.conf.js",
  20. "rebuild": ".\\node_modules\\.bin\\electron-rebuild.cmd",
  21. "postinstall": ""
  22. },
  23. "build": {
  24. "productName": "zxy",
  25. "appId": "com.example.yourapp",
  26. "directories": {
  27. "output": "build"
  28. },
  29. "files": [
  30. "dist/electron/**/*"
  31. ],
  32. "dmg": {
  33. "contents": [
  34. {
  35. "x": 410,
  36. "y": 150,
  37. "type": "link",
  38. "path": "/Applications"
  39. },
  40. {
  41. "x": 130,
  42. "y": 150,
  43. "type": "file"
  44. }
  45. ]
  46. },
  47. "mac": {
  48. "icon": "build/icons/icon.icns"
  49. },
  50. "win": {
  51. "icon": "build/icons/icon.ico"
  52. },
  53. "linux": {
  54. "icon": "build/icons"
  55. }
  56. },
  57. "dependencies": {
  58. "axios": "^0.18.0",
  59. "bufferutil": "^4.0.1",
  60. "echarts": "^4.7.0",
  61. "element-ui": "^2.13.1",
  62. "koa": "^2.2.0",
  63. "noble": "^1.9.1",
  64. "node-bluetooth": "^1.2.6",
  65. "socket.io": "^2.3.0",
  66. "vue": "^2.5.16",
  67. "vue-echarts": "^5.0.0-beta.0",
  68. "vue-electron": "^1.0.6",
  69. "vue-heatmapjs": "^1.5.0-0",
  70. "vue-router": "^3.0.1",
  71. "vue-socket.io": "^3.0.7",
  72. "vuex": "^3.0.1",
  73. "vuex-electron": "^1.0.0"
  74. },
  75. "devDependencies": {
  76. "ajv": "^6.5.0",
  77. "babel-core": "^6.26.3",
  78. "babel-loader": "^7.1.4",
  79. "babel-minify-webpack-plugin": "^0.3.1",
  80. "babel-plugin-istanbul": "^4.1.6",
  81. "babel-plugin-transform-runtime": "^6.23.0",
  82. "babel-preset-env": "^1.7.0",
  83. "babel-preset-stage-0": "^6.24.1",
  84. "babel-register": "^6.26.0",
  85. "cfonts": "^2.1.2",
  86. "chai": "^4.1.2",
  87. "chalk": "^2.4.1",
  88. "copy-webpack-plugin": "^4.5.1",
  89. "cross-env": "^5.1.6",
  90. "css-loader": "^0.28.11",
  91. "del": "^3.0.0",
  92. "devtron": "^1.4.0",
  93. "electron": "^2.0.4",
  94. "electron-builder": "^20.19.2",
  95. "electron-debug": "^1.5.0",
  96. "electron-devtools-installer": "^2.2.4",
  97. "electron-rebuild": "^1.10.1",
  98. "file-loader": "^1.1.11",
  99. "html-webpack-plugin": "^3.2.0",
  100. "inject-loader": "^4.0.1",
  101. "karma": "^2.0.2",
  102. "karma-chai": "^0.1.0",
  103. "karma-coverage": "^1.1.2",
  104. "karma-electron": "^6.0.0",
  105. "karma-mocha": "^1.3.0",
  106. "karma-sourcemap-loader": "^0.3.7",
  107. "karma-spec-reporter": "^0.0.32",
  108. "karma-webpack": "^3.0.0",
  109. "mini-css-extract-plugin": "0.4.0",
  110. "mocha": "^5.2.0",
  111. "multispinner": "^0.2.1",
  112. "node-loader": "^0.6.0",
  113. "node-sass": "^4.9.2",
  114. "require-dir": "^1.0.0",
  115. "sass-loader": "^7.0.3",
  116. "spectron": "^3.8.0",
  117. "style-loader": "^0.21.0",
  118. "url-loader": "^1.0.1",
  119. "vue-html-loader": "^1.2.4",
  120. "vue-loader": "^15.2.4",
  121. "vue-style-loader": "^4.1.0",
  122. "vue-template-compiler": "^2.5.16",
  123. "webpack": "^4.15.1",
  124. "webpack-cli": "^3.0.8",
  125. "webpack-dev-server": "^3.1.4",
  126. "webpack-hot-middleware": "^2.22.2",
  127. "webpack-merge": "^4.1.3"
  128. },
  129. "optionalDependencies": {
  130. "utf-8-validate": "^5.0.2"
  131. }
  132. }