package.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. {
  2. "name": "startup",
  3. "version": "0.1.19",
  4. "author": "珠海纵横软件有限公司",
  5. "description": "纵横Z+ 造价工作平台",
  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. "lint": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter src",
  15. "lint:fix": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix src",
  16. "pack": "npm run pack:main && npm run pack:renderer",
  17. "pack:main": "cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.main.config.js",
  18. "pack:renderer": "cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.renderer.config.js",
  19. "postinstall": "npm run lint:fix",
  20. "rebuild-ffi": "cd ./node_modules/ffi/ && node-gyp rebuild --target=2.0.4 --arch=ia32 --target_arch=ia32 --dist-url=https://atom.io/download/electron && cd ../ref && node-gyp rebuild --target=2.0.4 --arch=ia32 --target_arch=ia32 --dist-url=https://atom.io/download/electron "
  21. },
  22. "build": {
  23. "productName": "纵横Z+造价工作平台",
  24. "appId": "org.smartcost.startup",
  25. "copyright": "Copyright © 2018 珠海纵横软件有限公司",
  26. "directories": {
  27. "output": "build"
  28. },
  29. "asar": false,
  30. "files": [
  31. "dist/electron/**/*"
  32. ],
  33. "publish": [
  34. {
  35. "provider": "generic",
  36. "url": "http://d2.smartcost.com.cn/startup/"
  37. }
  38. ],
  39. "win": {
  40. "icon": "build/icons/smartcost.ico",
  41. "target": [
  42. "nsis"
  43. ],
  44. "artifactName": "${productName}_setup_${version}.${ext}"
  45. },
  46. "nsis": {
  47. "oneClick": false,
  48. "perMachine": true,
  49. "include": "build/nsisfile/installer.nsh",
  50. "allowToChangeInstallationDirectory": true,
  51. "createDesktopShortcut": true,
  52. "deleteAppDataOnUninstall": true,
  53. "installerIcon": "build/icons/setup.ico",
  54. "uninstallerIcon": "build/icons/uninst.ico",
  55. "guid": "startup"
  56. },
  57. "extraResources": [
  58. {
  59. "from": "data",
  60. "to": "../data"
  61. }
  62. ]
  63. },
  64. "dependencies": {
  65. "vue": "^2.5.16",
  66. "axios": "^0.18.0",
  67. "vue-electron": "^1.0.6",
  68. "vue-router": "^3.0.1",
  69. "vuex": "^3.0.1",
  70. "fs-extra": "^6.0.1",
  71. "compressing": "^1.2.4",
  72. "electron-dl": "^1.12.0",
  73. "electron-updater": "^4.0.0",
  74. "element-ui": "^2.4.1",
  75. "ffi": "^2.2.0",
  76. "glob": "^7.1.2",
  77. "lodash-id": "^0.14.0",
  78. "lowdb": "^1.0.0",
  79. "regedit": "^3.0.0",
  80. "usb": "^1.3.2"
  81. },
  82. "devDependencies": {
  83. "ajv": "^6.5.0",
  84. "babel-core": "^6.26.3",
  85. "babel-loader": "^7.1.4",
  86. "babel-plugin-transform-runtime": "^6.23.0",
  87. "babel-preset-env": "^1.7.0",
  88. "babel-preset-stage-0": "^6.24.1",
  89. "babel-register": "^6.26.0",
  90. "babili-webpack-plugin": "^0.1.2",
  91. "cfonts": "^2.1.2",
  92. "chalk": "^2.4.1",
  93. "copy-webpack-plugin": "^4.5.1",
  94. "cross-env": "^5.1.6",
  95. "css-loader": "^0.28.11",
  96. "del": "^3.0.0",
  97. "devtron": "^1.4.0",
  98. "electron": "^2.0.4",
  99. "electron-debug": "^1.5.0",
  100. "electron-devtools-installer": "^2.2.4",
  101. "electron-builder": "^20.19.2",
  102. "electron-rebuild": "^1.7.3",
  103. "babel-eslint": "^8.2.3",
  104. "eslint": "^4.19.1",
  105. "eslint-friendly-formatter": "^4.0.1",
  106. "eslint-loader": "^2.0.0",
  107. "eslint-plugin-html": "^4.0.3",
  108. "eslint-config-standard": "^11.0.0",
  109. "eslint-plugin-import": "^2.12.0",
  110. "eslint-plugin-node": "^6.0.1",
  111. "eslint-plugin-promise": "^3.8.0",
  112. "eslint-plugin-standard": "^3.1.0",
  113. "mini-css-extract-plugin": "0.4.0",
  114. "file-loader": "^1.1.11",
  115. "html-webpack-plugin": "^3.2.0",
  116. "multispinner": "^0.2.1",
  117. "node-loader": "^0.6.0",
  118. "node-sass": "^4.9.2",
  119. "sass-loader": "^7.0.3",
  120. "style-loader": "^0.21.0",
  121. "url-loader": "^1.0.1",
  122. "vue-html-loader": "^1.2.4",
  123. "vue-loader": "^15.2.4",
  124. "vue-style-loader": "^4.1.0",
  125. "vue-template-compiler": "^2.5.16",
  126. "webpack-cli": "^3.0.8",
  127. "webpack": "^4.15.1",
  128. "webpack-dev-server": "^3.1.4",
  129. "webpack-hot-middleware": "^2.22.2",
  130. "webpack-merge": "^4.1.3"
  131. }
  132. }