package.json 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. {
  2. "name": "ant-design-pro",
  3. "version": "2.2.1",
  4. "description": "An out-of-box UI solution for enterprise applications",
  5. "private": true,
  6. "scripts": {
  7. "presite": "cd functions && npm install",
  8. "start": "cross-env NODE_OPTIONS=--max-old-space-size=8000 APP_TYPE=site UMI_UI=none BROWSER=none umi dev",
  9. "start:no-mock": "cross-env MOCK=none umi dev",
  10. "build": "umi build",
  11. "build-prod": "cross-env UMI_ENV=prod umi build umi build",
  12. "site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy && npm run docker:push",
  13. "analyze": "cross-env ANALYZE=1 umi build",
  14. "lint:style": "stylelint 'src/**/*.less' --syntax less",
  15. "lint:prettier": "check-prettier lint",
  16. "lint": "eslint --ext .js src mock tests && npm run lint:style && npm run lint:prettier",
  17. "lint:fix": "eslint --fix --ext .js src mock tests && stylelint --fix 'src/**/*.less' --syntax less",
  18. "lint-staged": "lint-staged",
  19. "lint-staged:js": "eslint --ext .js",
  20. "tslint": "npm run tslint:fix",
  21. "tslint:fix": "tslint --fix 'src/**/*.ts*'",
  22. "test": "umi test",
  23. "test:component": "umi test ./src/components",
  24. "test:all": "node ./tests/run-tests.js",
  25. "prettier": "node ./scripts/prettier.js",
  26. "docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up",
  27. "docker:build": "docker-compose -f ./docker/docker-compose.dev.yml build",
  28. "docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up",
  29. "docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build",
  30. "docker-hub:build": "docker build -f Dockerfile.hub -t ant-design-pro ./",
  31. "docker:tag": "docker tag ant-design-pro antdesign/ant-design-pro",
  32. "docker:push": "npm run docker-hub:build && npm run docker:tag && docker push antdesign/ant-design-pro"
  33. },
  34. "dependencies": {
  35. "@ant-design/compatible": "^1.0.0",
  36. "@ant-design/icons": "^4.0.0",
  37. "@ant-design/pro-layout": "^5.0.0",
  38. "@antv/data-set": "^0.10.1",
  39. "@antv/g2": "^3.5.9",
  40. "@antv/x6": "^1.32.3",
  41. "@antv/xflow": "^1.0.48",
  42. "@babel/runtime": "^7.3.1",
  43. "@opuscapita/react-filemanager": "^1.1.0-beta.6",
  44. "@opuscapita/react-filemanager-connector-node-v1": "^1.1.0-beta.6",
  45. "ahooks": "^3.7.8",
  46. "antd": "^4.0.0",
  47. "array-move": "^3.0.1",
  48. "axios": "^0.24.0",
  49. "bizcharts": "^3.5.5",
  50. "bizcharts-plugin-slider": "^2.1.1-beta.1",
  51. "braft-editor": "^2.3.9",
  52. "caniuse-lite": "^1.0.30001165",
  53. "classnames": "^2.2.6",
  54. "compression-webpack-plugin": "6.0.0",
  55. "dingtalk-jsapi": "^2.15.4",
  56. "dva": "^2.4.1",
  57. "enquire-js": "^0.2.1",
  58. "exceljs": "^4.3.0",
  59. "fecha": "2.3.1",
  60. "file-saver": "1.3.3",
  61. "filesize": "3.5.11",
  62. "flv.js": "^1.5.0",
  63. "gg-editor": "^3.1.3",
  64. "griffith": "^1.5.0",
  65. "hash.js": "^1.1.7",
  66. "jszip": "^3.5.0",
  67. "less-loader": "^10.2.0",
  68. "lodash": "^4.17.11",
  69. "lodash-decorators": "^6.0.1",
  70. "luckyexcel": "^1.0.1",
  71. "memoize-one": "^5.0.0",
  72. "moment": "^2.24.0",
  73. "nanoid": "1.0.0",
  74. "numeral": "^2.0.6",
  75. "nzh": "^1.0.4",
  76. "omit.js": "^1.0.0",
  77. "path-to-regexp": "^3.0.0",
  78. "prop-types": "^15.6.2",
  79. "qrcode.react": "^3.1.0",
  80. "qs": "^6.6.0",
  81. "range-parser": "1.2.0",
  82. "rc-animate": "^2.6.0",
  83. "react": "^16.7.0",
  84. "react-color": "^2.19.3",
  85. "react-container-query": "^0.11.0",
  86. "react-copy-to-clipboard": "^5.0.1",
  87. "react-document-title": "^2.0.3",
  88. "react-dom": "^16.7.0",
  89. "react-excel-renderer": "^1.1.0",
  90. "react-fittext": "^1.0.0",
  91. "react-gantt-timeline": "^0.4.0",
  92. "react-grid-layout": "^1.2.5",
  93. "react-id-swiper": "^2.4.0",
  94. "react-keyed-file-browser": "^1.5.2",
  95. "react-media": "^1.9.2",
  96. "react-pdf": "^5.1.0",
  97. "react-resizable": "^3.0.4",
  98. "react-router-dom": "^4.3.1",
  99. "react-sizeme": "^2.6.7",
  100. "react-sortable-hoc": "^2.0.0",
  101. "react-zmage": "^0.8.5"
  102. },
  103. "devDependencies": {
  104. "@types/react": "^16.8.1",
  105. "@types/react-dom": "^16.0.11",
  106. "antd-pro-merge-less": "^1.0.0",
  107. "antd-theme-webpack-plugin": "^1.2.0",
  108. "babel-eslint": "^10.0.1",
  109. "chalk": "^2.4.2",
  110. "check-prettier": "^1.0.1",
  111. "cross-env": "^5.2.0",
  112. "cross-port-killer": "^1.0.1",
  113. "echarts": "^4.8.0",
  114. "enzyme": "^3.9.0",
  115. "eslint": "^5.13.0",
  116. "eslint-config-airbnb": "^17.1.0",
  117. "eslint-config-prettier": "^4.0.0",
  118. "eslint-plugin-babel": "^5.3.0",
  119. "eslint-plugin-compat": "^2.6.3",
  120. "eslint-plugin-import": "^2.16.0",
  121. "eslint-plugin-jsx-a11y": "^6.2.0",
  122. "eslint-plugin-markdown": "^1.0.0",
  123. "eslint-plugin-react": "^7.12.4",
  124. "gh-pages": "^2.0.1",
  125. "husky": "^1.3.1",
  126. "jest-puppeteer": "^4.0.0",
  127. "less": "3.13.1",
  128. "lint-staged": "^8.1.1",
  129. "merge-umi-mock-data": "^1.0.4",
  130. "mockjs": "^1.0.1-beta3",
  131. "prettier": "^1.16.4",
  132. "stylelint": "^9.10.1",
  133. "stylelint-config-css-modules": "^1.3.0",
  134. "stylelint-config-prettier": "^5.0.0",
  135. "stylelint-config-rational-order": "^0.0.4",
  136. "stylelint-config-standard": "^18.2.0",
  137. "stylelint-declaration-block-no-ignored-properties": "^1.1.0",
  138. "stylelint-order": "^2.0.0",
  139. "tslint": "^5.12.1",
  140. "tslint-config-prettier": "^1.17.0",
  141. "tslint-react": "^3.6.0",
  142. "typescript": "^4.4.4",
  143. "umi": "^2.4.4",
  144. "umi-plugin-ga": "^1.1.3",
  145. "umi-plugin-react": "^1.4.2"
  146. },
  147. "optionalDependencies": {
  148. "puppeteer": "^1.12.1"
  149. },
  150. "lint-staged": {
  151. "**/*.{js,ts,tsx,json,jsx,less}": [
  152. "node ./scripts/lint-prettier.js",
  153. "git add"
  154. ],
  155. "**/*.{js,jsx}": "npm run lint-staged:js",
  156. "**/*.less": "stylelint --syntax less"
  157. },
  158. "engines": {
  159. "node": ">=8.0.0"
  160. },
  161. "browserslist": [
  162. "> 1%",
  163. "last 2 versions",
  164. "not ie <= 10"
  165. ],
  166. "checkFiles": [
  167. "src/**/*.js*",
  168. "src/**/*.ts*",
  169. "src/**/*.less",
  170. "config/**/*.js*",
  171. "scripts/**/*.js"
  172. ],
  173. "husky": {
  174. "hooks": {}
  175. }
  176. }