package.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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": "cross-env REACT_APP_ENV=pro 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. "precommit": "lint-staged",
  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/charts": "^1.3.5",
  51. "@ant-design/icons": "^4.7.0",
  52. "@ant-design/pro-descriptions": "^1.10.0",
  53. "@ant-design/pro-form": "^1.52.0",
  54. "@ant-design/pro-layout": "^6.32.0",
  55. "@ant-design/pro-table": "^2.61.0",
  56. "@umijs/route-utils": "^2.0.0",
  57. "ahooks": "^3.1.9",
  58. "antd": "^4.24.14",
  59. "classnames": "^2.3.0",
  60. "lodash": "^4.17.0",
  61. "moment": "^2.29.0",
  62. "omit.js": "^2.0.2",
  63. "qrcodejs2": "^0.0.2",
  64. "rc-menu": "^9.1.0",
  65. "rc-util": "^5.16.0",
  66. "react": "^17.0.0",
  67. "react-dev-inspector": "^1.7.0",
  68. "react-dom": "^17.0.0",
  69. "react-draggable": "^4.4.5",
  70. "react-helmet-async": "^1.2.0",
  71. "umi": "^3.5.0"
  72. },
  73. "devDependencies": {
  74. "@ant-design/pro-cli": "^2.1.0",
  75. "@playwright/test": "^1.17.0",
  76. "@types/express": "^4.17.0",
  77. "@types/history": "^4.7.0",
  78. "@types/jest": "^26.0.0",
  79. "@types/lodash": "^4.14.0",
  80. "@types/react": "^17.0.0",
  81. "@types/react-dom": "^17.0.0",
  82. "@types/react-helmet": "^6.1.0",
  83. "@umijs/fabric": "^2.8.0",
  84. "@umijs/openapi": "^1.3.0",
  85. "@umijs/plugin-blocks": "^2.2.0",
  86. "@umijs/plugin-esbuild": "^1.4.0",
  87. "@umijs/plugin-openapi": "^1.3.0",
  88. "@umijs/preset-ant-design-pro": "^1.3.0",
  89. "@umijs/preset-dumi": "^1.1.0",
  90. "@umijs/preset-react": "^1.8.17",
  91. "@umijs/yorkie": "^2.0.5",
  92. "carlo": "^0.9.46",
  93. "cross-env": "^7.0.0",
  94. "cross-port-killer": "^1.3.0",
  95. "detect-installer": "^1.0.0",
  96. "enzyme": "^3.11.0",
  97. "eslint": "^7.32.0",
  98. "express": "^4.17.0",
  99. "gh-pages": "^3.2.0",
  100. "jsdom-global": "^3.0.0",
  101. "lint-staged": "^10.0.0",
  102. "mockjs": "^1.1.0",
  103. "prettier": "^2.5.0",
  104. "puppeteer-core": "^8.0.0",
  105. "stylelint": "^13.0.0",
  106. "swagger-ui-react": "^3.52.0",
  107. "typescript": "^4.5.0",
  108. "umi-serve": "^1.9.10"
  109. },
  110. "engines": {
  111. "node": ">=10.0.0"
  112. },
  113. "gitHooks": {
  114. "commit-msg": "fabric verify-commit"
  115. }
  116. }