package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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-style": "^3.6.1",
  56. "axios": "^1.7.2",
  57. "classnames": "^2.5.1",
  58. "lodash": "^4.17.21",
  59. "moment": "^2.30.1",
  60. "omit.js": "^2.0.2",
  61. "querystring": "^0.2.1",
  62. "rc-menu": "^9.12.4",
  63. "rc-util": "^5.38.1",
  64. "react": "^18.2.0",
  65. "react-dom": "^18.2.0",
  66. "react-helmet-async": "^1.3.0",
  67. "react-json-view": "^1.21.3",
  68. "uuid": "^9.0.1"
  69. },
  70. "devDependencies": {
  71. "@ant-design/pro-cli": "^3.3.0",
  72. "@testing-library/react": "^13.4.0",
  73. "@types/classnames": "^2.3.1",
  74. "@types/express": "^4.17.21",
  75. "@types/history": "^4.7.11",
  76. "@types/jest": "^29.5.11",
  77. "@types/lodash": "^4.14.202",
  78. "@types/react": "^18.2.48",
  79. "@types/react-dom": "^18.2.18",
  80. "@types/react-helmet": "^6.1.11",
  81. "@types/uuid": "^9.0.8",
  82. "@umijs/fabric": "^2.14.1",
  83. "@umijs/lint": "^4.1.1",
  84. "@umijs/max": "^4.1.1",
  85. "autoprefixer": "^10.4.19",
  86. "cross-env": "^7.0.3",
  87. "eslint": "^8.56.0",
  88. "express": "^4.18.2",
  89. "gh-pages": "^3.2.3",
  90. "husky": "^7.0.4",
  91. "jest": "^29.7.0",
  92. "jest-environment-jsdom": "^29.7.0",
  93. "lint-staged": "^10.5.4",
  94. "mockjs": "^1.1.0",
  95. "postcss-import": "^16.1.0",
  96. "postcss-nested": "^6.0.1",
  97. "prettier": "^3.2.5",
  98. "react-dev-inspector": "^1.9.0",
  99. "swagger-ui-dist": "^4.19.1",
  100. "tailwindcss": "^3.4.3",
  101. "ts-node": "^10.9.2",
  102. "typescript": "^5.3.3",
  103. "umi-presets-pro": "^2.0.3",
  104. "umi-serve": "^1.9.11"
  105. },
  106. "engines": {
  107. "node": ">=12.0.0"
  108. }
  109. }