package.json 3.8 KB

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