package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {
  2. "name": "ant-design-pro",
  3. "version": "5.2.0",
  4. "private": true,
  5. "description": "An out-of-box UI solution for enterprise applications",
  6. "scripts": {
  7. "analyze": "cross-env ANALYZE=1 umi build",
  8. "build": "umi build",
  9. "deploy": "npm run build && npm run gh-pages",
  10. "dev": "npm run start:dev",
  11. "gh-pages": "gh-pages -d dist",
  12. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  13. "postinstall": "umi g tmp",
  14. "lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier && npm run tsc",
  15. "lint-staged": "lint-staged",
  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 -c --write \"src/**/*\" --end-of-line auto",
  20. "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  21. "openapi": "umi openapi",
  22. "playwright": "playwright install && playwright test",
  23. "prepare": "husky install",
  24. "prettier": "prettier -c --write \"src/**/*\"",
  25. "serve": "umi-serve",
  26. "start": "cross-env UMI_ENV=dev umi dev",
  27. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev umi dev",
  28. "start:no-mock": "cross-env MOCK=none UMI_ENV=dev umi dev",
  29. "start:no-ui": "cross-env UMI_UI=none UMI_ENV=dev umi dev",
  30. "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev umi dev",
  31. "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev umi dev",
  32. "test": "umi test",
  33. "test:component": "umi test ./src/components",
  34. "test:e2e": "node ./tests/run-tests.js",
  35. "tsc": "tsc --noEmit"
  36. },
  37. "lint-staged": {
  38. "**/*.less": "stylelint --syntax less",
  39. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  40. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  41. "prettier --write"
  42. ]
  43. },
  44. "browserslist": [
  45. "> 1%",
  46. "last 2 versions",
  47. "not ie <= 10"
  48. ],
  49. "dependencies": {
  50. "@ant-design/icons": "^4.7.0",
  51. "@ant-design/pro-components": "1.1.1",
  52. "@babel/core": "^7.20.2",
  53. "@babel/preset-env": "^7.20.2",
  54. "@jiaminghi/data-view-react": "^1.2.5",
  55. "@umijs/route-utils": "^2.0.0",
  56. "@wangeditor/editor": "^5.1.23",
  57. "@wangeditor/editor-for-react": "^1.0.6",
  58. "antd": "^4.21.2",
  59. "classnames": "^2.3.0",
  60. "echarts": "^5.4.0",
  61. "js-md5": "^0.7.3",
  62. "jsonpath-plus": "^7.2.0",
  63. "lodash": "^4.17.0",
  64. "moment": "^2.29.0",
  65. "mqtt": "^4.3.7",
  66. "omit.js": "^2.0.2",
  67. "prop-types": "^15.8.1",
  68. "qs": "^6.11.0",
  69. "rc-menu": "^9.1.0",
  70. "rc-util": "^5.16.0",
  71. "react": "^17.0.0",
  72. "react-dev-inspector": "^1.7.0",
  73. "react-dom": "^17.0.0",
  74. "react-helmet-async": "^1.2.0",
  75. "react-quill": "^2.0.0",
  76. "react-slick": "^0.29.0",
  77. "slick-carousel": "^1.8.1",
  78. "umi": "3.5.0"
  79. },
  80. "devDependencies": {
  81. "@ant-design/pro-cli": "^2.1.0",
  82. "@playwright/test": "^1.17.0",
  83. "@types/classnames": "^2.3.1",
  84. "@types/express": "^4.17.0",
  85. "@types/history": "^4.7.0",
  86. "@types/jest": "^26.0.0",
  87. "@types/js-md5": "^0.4.3",
  88. "@types/lodash": "^4.14.0",
  89. "@types/react": "^18.0.9",
  90. "@types/react-dom": "^18.0.5",
  91. "@types/react-helmet": "^6.1.0",
  92. "@types/react-slick": "^0.23.10",
  93. "@umijs/fabric": "^2.11.1",
  94. "@umijs/openapi": "^1.6.0",
  95. "@umijs/plugin-blocks": "^2.2.0",
  96. "@umijs/plugin-esbuild": "^1.4.0",
  97. "@umijs/plugin-openapi": "^1.3.3",
  98. "@umijs/preset-ant-design-pro": "^1.3.0",
  99. "@umijs/preset-dumi": "^1.1.0",
  100. "@umijs/preset-react": "^2.1.0",
  101. "cross-env": "^7.0.0",
  102. "cross-port-killer": "^1.3.0",
  103. "detect-installer": "^1.0.0",
  104. "eslint": "^7.32.0",
  105. "gh-pages": "^3.2.0",
  106. "husky": "^7.0.4",
  107. "jsdom-global": "^3.0.0",
  108. "lint-staged": "^10.0.0",
  109. "mockjs": "^1.1.0",
  110. "prettier": "^2.5.0",
  111. "stylelint": "^13.0.0",
  112. "swagger-ui-dist": "^4.12.0",
  113. "typescript": "^4.1.2",
  114. "umi-serve": "^1.9.10"
  115. },
  116. "engines": {
  117. "node": ">=12.0.0"
  118. }
  119. }