package.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {
  2. "name": "ant-design-pro",
  3. "version": "4.3.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:qa": "cross-env REACT_APP_ENV=dev auto-deploy build -t qa",
  10. "deploy:prod": "cross-env REACT_APP_ENV=prod auto-deploy build -t prod",
  11. "deploy-gh-pages": "npm run site && npm run gh-pages",
  12. "dev": "npm run start:dev",
  13. "fetch:blocks": "pro fetch-blocks && npm run prettier",
  14. "gh-pages": "gh-pages -d dist",
  15. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  16. "postinstall": "umi g tmp",
  17. "lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",
  18. "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
  19. "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
  20. "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
  21. "lint:prettier": "prettier --check \"src/**/*\" --end-of-line auto",
  22. "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  23. "precommit": "lint-staged",
  24. "prettier": "prettier -c --write \"src/**/*\"",
  25. "start": "umi dev",
  26. "start:dev": "cross-env PORT=7800 REACT_APP_ENV=dev MOCK=none umi dev",
  27. "start:no-mock": "cross-env MOCK=none umi dev",
  28. "start:no-ui": "cross-env UMI_UI=none umi dev",
  29. "start:pre": "cross-env REACT_APP_ENV=pre umi dev",
  30. "start:test": "cross-env REACT_APP_ENV=test MOCK=none umi dev",
  31. "pretest": "node ./tests/beforeTest",
  32. "test": "umi test",
  33. "test:all": "node ./tests/run-tests.js",
  34. "test:component": "umi test ./src/components",
  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/charts": "1.3.2",
  51. "@ant-design/icons": "^4.0.0",
  52. "@ant-design/pro-descriptions": "^1.0.19",
  53. "@ant-design/pro-form": "1.42.1",
  54. "@ant-design/pro-layout": "6.19.3",
  55. "@ant-design/pro-table": "2.60.0",
  56. "@arco-design/web-react": "2.26.2",
  57. "@icon-park/react": "^1.3.3",
  58. "@umijs/route-utils": "^1.0.33",
  59. "ahooks": "^2.10.0",
  60. "antd": "^4.17.3",
  61. "antd-img-crop": "^3.16.0",
  62. "classnames": "^2.2.6",
  63. "crypto-js": "^4.0.0",
  64. "dayjs": "^1.10.4",
  65. "install": "^0.13.0",
  66. "lodash-es": "^4.17.21",
  67. "omit.js": "^2.0.2",
  68. "qs": "^6.9.4",
  69. "rc-util": "^5.16.1",
  70. "react": "17.0.2",
  71. "react-copy-to-clipboard": "^5.0.4",
  72. "react-dom": "17.0.2",
  73. "react-helmet-async": "^1.0.4",
  74. "react-infinite-scroll-component": "^6.1.0",
  75. "react-markdown": "^7.1.0",
  76. "umi": "3.5.4",
  77. "vditor": "^3.8.7"
  78. },
  79. "devDependencies": {
  80. "@ant-design/pro-cli": "^1.0.18",
  81. "@babel/plugin-proposal-optional-chaining": "^7.13.12",
  82. "@types/classnames": "^2.2.7",
  83. "@types/express": "^4.17.0",
  84. "@types/history": "^4.7.2",
  85. "@types/jest": "^26.0.0",
  86. "@types/lodash": "^4.14.144",
  87. "@types/qs": "^6.5.3",
  88. "@types/react": "^16.9.17",
  89. "@types/react-dom": "^16.8.4",
  90. "@types/react-helmet": "^6.1.0",
  91. "@umijs/fabric": "^2.6.2",
  92. "@umijs/plugin-blocks": "^2.0.5",
  93. "@umijs/plugin-esbuild": "^1.0.1",
  94. "@umijs/plugin-sass": "^1.1.1",
  95. "@umijs/preset-ant-design-pro": "^1.2.0",
  96. "@umijs/preset-react": "1.8.12",
  97. "@umijs/yorkie": "^2.0.3",
  98. "agent-base": "^6.0.2",
  99. "antd-dayjs-webpack-plugin": "^1.0.6",
  100. "babel-eslint": "^10.1.0",
  101. "babel-plugin-import": "^1.13.3",
  102. "carlo": "^0.9.46",
  103. "chalk": "^4.0.0",
  104. "compression-webpack-plugin": "4.0.1",
  105. "cross-env": "^7.0.0",
  106. "cross-port-killer": "^1.1.1",
  107. "detect-installer": "^1.0.1",
  108. "enzyme": "^3.11.0",
  109. "eslint": "^7.18.0",
  110. "eslint-plugin-import": "^2.23.4",
  111. "eslint-plugin-javascript": "^1.3.4",
  112. "eslint-plugin-jsx": "^0.1.0",
  113. "eslint-plugin-react": "^7.24.0",
  114. "eslint-plugin-typescript": "^0.14.0",
  115. "express": "^4.17.1",
  116. "gh-pages": "^3.0.0",
  117. "jsdom-global": "^3.0.2",
  118. "lint-staged": "^10.0.0",
  119. "mockjs": "^1.0.1-beta3",
  120. "prettier": "^2.2.1",
  121. "pro-download": "1.0.1",
  122. "puppeteer-core": "^5.0.0",
  123. "stylelint": "^13.9.0",
  124. "typescript": "^4.0.3",
  125. "upgrade": "^1.1.0",
  126. "use-merge-value": "^1.0.1",
  127. "webpack": "^5.40.0",
  128. "windicss": "3.1.7",
  129. "windicss-webpack-plugin": "1.4.5"
  130. },
  131. "engines": {
  132. "node": ">=10.0.0"
  133. },
  134. "checkFiles": [
  135. "src/**/*.js*",
  136. "src/**/*.ts*",
  137. "src/**/*.less",
  138. "config/**/*.js*",
  139. "scripts/**/*.js"
  140. ]
  141. }