package.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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": "cross-env REACT_APP_ENV=prod umi build",
  9. "deploy:qa": "cross-env REACT_APP_ENV=qa auto-deploy build -t qa",
  10. "deploy:prod": "auto-deploy build -t prod",
  11. "deploy-gh-pages": "npm run site && npm run gh-pages",
  12. "dev": "cross-env REACT_APP_ENV=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 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.1.20",
  51. "@ant-design/icons": "^4.0.0",
  52. "@ant-design/pro-descriptions": "^1.0.19",
  53. "@ant-design/pro-form": "1.31.2",
  54. "@ant-design/pro-layout": "6.19.3",
  55. "@ant-design/pro-table": "2.43.4",
  56. "@icon-park/react": "^1.3.3",
  57. "@umijs/route-utils": "^1.0.33",
  58. "ahooks": "^2.10.0",
  59. "antd": "4.16.12",
  60. "classnames": "^2.2.6",
  61. "crypto-js": "^4.0.0",
  62. "dayjs": "^1.10.4",
  63. "dragm": "^0.0.5",
  64. "install": "^0.13.0",
  65. "lodash": "^4.17.11",
  66. "omit.js": "^2.0.2",
  67. "qs": "^6.9.4",
  68. "react": "17.0.2",
  69. "react-dom": "17.0.2",
  70. "react-helmet-async": "^1.0.4",
  71. "umi": "3.5.4",
  72. "upgrade": "^1.1.0",
  73. "use-merge-value": "^1.0.1"
  74. },
  75. "devDependencies": {
  76. "@ant-design/pro-cli": "^1.0.18",
  77. "@babel/plugin-proposal-optional-chaining": "^7.13.12",
  78. "@types/classnames": "^2.2.7",
  79. "@types/express": "^4.17.0",
  80. "@types/history": "^4.7.2",
  81. "@types/jest": "^26.0.0",
  82. "@types/lodash": "^4.14.144",
  83. "@types/qs": "^6.5.3",
  84. "@types/react": "^16.9.17",
  85. "@types/react-dom": "^16.8.4",
  86. "@types/react-helmet": "^6.1.0",
  87. "@umijs/fabric": "^2.6.2",
  88. "@umijs/plugin-blocks": "^2.0.5",
  89. "@umijs/plugin-esbuild": "^1.0.1",
  90. "@umijs/plugin-sass": "^1.1.1",
  91. "@umijs/preset-ant-design-pro": "^1.2.0",
  92. "@umijs/preset-react": "1.8.12",
  93. "@umijs/yorkie": "^2.0.3",
  94. "agent-base": "^6.0.2",
  95. "antd-dayjs-webpack-plugin": "^1.0.6",
  96. "babel-eslint": "^10.1.0",
  97. "babel-plugin-import": "^1.13.3",
  98. "carlo": "^0.9.46",
  99. "chalk": "^4.0.0",
  100. "compression-webpack-plugin": "4.0.1",
  101. "cross-env": "^7.0.0",
  102. "cross-port-killer": "^1.1.1",
  103. "detect-installer": "^1.0.1",
  104. "enzyme": "^3.11.0",
  105. "eslint": "^7.18.0",
  106. "eslint-plugin-import": "^2.23.4",
  107. "eslint-plugin-javascript": "^1.3.4",
  108. "eslint-plugin-jsx": "^0.1.0",
  109. "eslint-plugin-react": "^7.24.0",
  110. "eslint-plugin-typescript": "^0.14.0",
  111. "express": "^4.17.1",
  112. "gh-pages": "^3.0.0",
  113. "jsdom-global": "^3.0.2",
  114. "lint-staged": "^10.0.0",
  115. "mockjs": "^1.0.1-beta3",
  116. "prettier": "^2.2.1",
  117. "pro-download": "1.0.1",
  118. "puppeteer-core": "^5.0.0",
  119. "stylelint": "^13.9.0",
  120. "typescript": "^4.0.3",
  121. "webpack": "^5.40.0",
  122. "windicss": "3.1.7",
  123. "windicss-webpack-plugin": "1.4.5"
  124. },
  125. "engines": {
  126. "node": ">=10.0.0"
  127. },
  128. "checkFiles": [
  129. "src/**/*.js*",
  130. "src/**/*.ts*",
  131. "src/**/*.less",
  132. "config/**/*.js*",
  133. "scripts/**/*.js"
  134. ]
  135. }