package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {
  2. "name": "ant-design-pro",
  3. "version": "6.0.0",
  4. "private": true,
  5. "description": "An out-of-box UI solution for enterprise applications",
  6. "scripts": {
  7. "analyze": "cross-env ANALYZE=1 max build",
  8. "build": "max 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": "max setup",
  14. "jest": "jest",
  15. "lint": "npm run lint:js && npm run lint:prettier && npm run tsc",
  16. "lint-staged": "lint-staged",
  17. "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
  18. "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src ",
  19. "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
  20. "lint:prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\" --end-of-line auto",
  21. "openapi": "max openapi",
  22. "prepare": "husky install",
  23. "prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"",
  24. "preview": "npm run build && max preview --port 8000",
  25. "record": "cross-env NODE_ENV=development REACT_APP_ENV=test max record --scene=login",
  26. "serve": "umi-serve",
  27. "start": "cross-env UMI_ENV=dev max dev",
  28. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev max dev",
  29. "start:no-mock": "cross-env MOCK=none UMI_ENV=dev max dev",
  30. "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev max dev",
  31. "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev max dev",
  32. "test": "jest",
  33. "test:coverage": "npm run jest -- --coverage",
  34. "test:update": "npm run jest -- -u",
  35. "tsc": "tsc --noEmit"
  36. },
  37. "lint-staged": {
  38. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  39. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  40. "prettier --write"
  41. ]
  42. },
  43. "browserslist": [
  44. "> 1%",
  45. "last 2 versions",
  46. "not ie <= 10"
  47. ],
  48. "dependencies": {
  49. "@ant-design/icons": "^4.8.1",
  50. "@ant-design/pro-components": "^2.6.48",
  51. "@types/ali-oss": "^6.16.11",
  52. "@umijs/route-utils": "^2.2.2",
  53. "ali-oss": "^6.20.0",
  54. "antd": "^5.13.2",
  55. "antd-mobile-icons": "^0.3.0",
  56. "antd-style": "^3.6.1",
  57. "axios": "^1.7.2",
  58. "classnames": "^2.5.1",
  59. "dayjs": "^1.11.11",
  60. "lodash": "^4.17.21",
  61. "moment": "^2.30.1",
  62. "omit.js": "^2.0.2",
  63. "querystring": "^0.2.1",
  64. "rc-menu": "^9.12.4",
  65. "rc-util": "^5.38.1",
  66. "react": "^18.2.0",
  67. "react-dom": "^18.2.0",
  68. "react-helmet-async": "^1.3.0",
  69. "react-json-view": "^1.21.3",
  70. "uuid": "^9.0.1"
  71. },
  72. "devDependencies": {
  73. "@ant-design/pro-cli": "^3.3.0",
  74. "@testing-library/react": "^13.4.0",
  75. "@types/classnames": "^2.3.1",
  76. "@types/express": "^4.17.21",
  77. "@types/history": "^4.7.11",
  78. "@types/jest": "^29.5.11",
  79. "@types/lodash": "^4.14.202",
  80. "@types/react": "^18.2.48",
  81. "@types/react-dom": "^18.2.18",
  82. "@types/react-helmet": "^6.1.11",
  83. "@types/uuid": "^9.0.8",
  84. "@umijs/fabric": "^2.14.1",
  85. "@umijs/lint": "^4.1.1",
  86. "@umijs/max": "^4.1.1",
  87. "autoprefixer": "^10.4.19",
  88. "cross-env": "^7.0.3",
  89. "eslint": "^8.56.0",
  90. "express": "^4.18.2",
  91. "gh-pages": "^3.2.3",
  92. "husky": "^7.0.4",
  93. "jest": "^29.7.0",
  94. "jest-environment-jsdom": "^29.7.0",
  95. "lint-staged": "^10.5.4",
  96. "mockjs": "^1.1.0",
  97. "postcss-import": "^16.1.0",
  98. "postcss-nested": "^6.0.1",
  99. "prettier": "^3.2.5",
  100. "react-dev-inspector": "^1.9.0",
  101. "swagger-ui-dist": "^4.19.1",
  102. "tailwindcss": "^3.4.3",
  103. "ts-node": "^10.9.2",
  104. "typescript": "^5.3.3",
  105. "umi-presets-pro": "^2.0.3",
  106. "umi-serve": "^1.9.11"
  107. },
  108. "engines": {
  109. "node": ">=12.0.0"
  110. }
  111. }