package.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. {
  2. "name": "crowd-sercive-frontend",
  3. "version": "4.5.0",
  4. "private": true,
  5. "description": "信创群智众测平台",
  6. "scripts": {
  7. "analyze": "cross-env ANALYZE=1 umi build",
  8. "build": "umi build",
  9. "deploy": "npm run site && npm run gh-pages",
  10. "dev": "npm run start:dev",
  11. "fetch:blocks": "pro fetch-blocks && npm run prettier",
  12. "gh-pages": "gh-pages -d dist",
  13. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  14. "postinstall": "umi g tmp",
  15. "lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",
  16. "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
  17. "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
  18. "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
  19. "lint:prettier": "prettier --check \"src/**/*\" --end-of-line auto",
  20. "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  21. "precommit": "",
  22. "prettier": "prettier -c --write \"src/**/*\"",
  23. "start": "cross-env UMI_ENV=dev umi dev",
  24. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev umi dev",
  25. "start:no-mock": "cross-env MOCK=none UMI_ENV=dev umi dev",
  26. "start:no-ui": "cross-env UMI_UI=none UMI_ENV=dev umi dev",
  27. "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev umi dev",
  28. "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev umi dev",
  29. "pretest": "node ./tests/beforeTest",
  30. "test": "umi test",
  31. "test:all": "node ./tests/run-tests.js",
  32. "test:component": "umi test ./src/components",
  33. "tsc": "tsc --noEmit"
  34. },
  35. "lint-staged": {
  36. "**/*.less": "stylelint --syntax less",
  37. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  38. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  39. "prettier --write"
  40. ]
  41. },
  42. "browserslist": [
  43. "> 1%",
  44. "last 2 versions",
  45. "not ie <= 10"
  46. ],
  47. "dependencies": {
  48. "@ant-design/icons": "^4.6.2",
  49. "@ant-design/pro-descriptions": "^1.2.0",
  50. "@ant-design/pro-form": "^1.3.0",
  51. "@ant-design/pro-layout": "^6.9.0",
  52. "@ant-design/pro-table": "^2.17.0",
  53. "@antv/data-set": "^0.11.0",
  54. "@antv/l7": "^2.1.9",
  55. "@antv/l7-maps": "^2.1.9",
  56. "@antv/l7-react": "^2.1.9",
  57. "@types/lodash.debounce": "^4.0.6",
  58. "@types/lodash.isequal": "^4.5.5",
  59. "@umijs/route-utils": "^1.0.33",
  60. "antd": "^4.15.6",
  61. "bizcharts": "^3.5.3-beta.0",
  62. "bizcharts-plugin-slider": "^2.1.1-beta.1",
  63. "classnames": "^2.2.6",
  64. "dva": "^2.4.0",
  65. "echarts": "^5.1.1",
  66. "gg-editor": "^2.0.2",
  67. "lodash": "^4.17.11",
  68. "lodash-decorators": "^6.0.0",
  69. "lodash.debounce": "^4.0.8",
  70. "lodash.isequal": "^4.5.0",
  71. "mockjs": "^1.0.1-beta3",
  72. "moment": "^2.25.3",
  73. "numeral": "^2.0.6",
  74. "nzh": "^1.0.3",
  75. "omit.js": "^2.0.2",
  76. "prop-types": "^15.5.10",
  77. "react": "^16.14.0",
  78. "react-dev-inspector": "^1.1.1",
  79. "react-dom": "^17.0.0",
  80. "react-fittext": "^1.0.0",
  81. "react-helmet-async": "^1.0.4",
  82. "react-router": "^4.3.1",
  83. "umi": "^3.2.14",
  84. "umi-request": "^1.0.8"
  85. },
  86. "devDependencies": {
  87. "@ant-design/pro-cli": "^1.0.28",
  88. "@types/classnames": "^2.2.7",
  89. "@types/express": "^4.17.0",
  90. "@types/history": "^4.7.2",
  91. "@types/jest": "^26.0.0",
  92. "@types/lodash": "^4.14.144",
  93. "@types/react": "^17.0.0",
  94. "@types/react-dom": "^17.0.0",
  95. "@types/react-helmet": "^6.1.0",
  96. "@umijs/fabric": "^2.5.1",
  97. "@umijs/plugin-blocks": "^2.0.5",
  98. "@umijs/plugin-esbuild": "^1.0.1",
  99. "@umijs/preset-ant-design-pro": "^1.2.0",
  100. "@umijs/preset-react": "^1.4.8",
  101. "@umijs/yorkie": "^2.0.3",
  102. "carlo": "^0.9.46",
  103. "chalk": "^4.0.0",
  104. "cross-env": "^7.0.0",
  105. "cross-port-killer": "^1.1.1",
  106. "detect-installer": "^1.0.1",
  107. "enzyme": "^3.11.0",
  108. "eslint": "^7.1.0",
  109. "express": "^4.17.1",
  110. "gh-pages": "^3.0.0",
  111. "jsdom-global": "^3.0.2",
  112. "lint-staged": "^10.0.0",
  113. "mockjs": "^1.0.1-beta3",
  114. "prettier": "^2.0.1",
  115. "puppeteer-core": "^7.0.1",
  116. "stylelint": "^13.0.0",
  117. "typescript": "^4.0.3"
  118. },
  119. "engines": {
  120. "node": ">=10.0.0"
  121. },
  122. "checkFiles": [
  123. "src/**/*.js*",
  124. "src/**/*.ts*",
  125. "src/**/*.less",
  126. "config/**/*.js*",
  127. "scripts/**/*.js"
  128. ]
  129. }