package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. "@umijs/route-utils": "^2.2.2",
  52. "antd": "^5.13.2",
  53. "antd-style": "^3.6.1",
  54. "classnames": "^2.5.1",
  55. "cron-expression-validator": "^1.0.20",
  56. "lodash-es": "^4.17.21",
  57. "moment": "^2.30.1",
  58. "nanoid": "^5.0.7",
  59. "omit.js": "^2.0.2",
  60. "querystring": "^0.2.1",
  61. "rc-menu": "^9.12.4",
  62. "rc-util": "^5.38.1",
  63. "react": "^18.2.0",
  64. "react-dom": "^18.2.0",
  65. "react-helmet-async": "^1.3.0",
  66. "voca": "^1.4.1"
  67. },
  68. "devDependencies": {
  69. "@ant-design/pro-cli": "^3.3.0",
  70. "@testing-library/react": "^13.4.0",
  71. "@types/classnames": "^2.3.1",
  72. "@types/express": "^4.17.21",
  73. "@types/history": "^4.7.11",
  74. "@types/jest": "^29.5.11",
  75. "@types/lodash-es": "^4.17.12",
  76. "@types/react": "^18.2.48",
  77. "@types/react-dom": "^18.2.18",
  78. "@types/react-helmet": "^6.1.11",
  79. "@types/voca": "^1.4.6",
  80. "@umijs/fabric": "^2.14.1",
  81. "@umijs/lint": "^4.1.1",
  82. "@umijs/max": "^4.1.1",
  83. "babel-plugin-transform-remove-console": "^6.9.4",
  84. "cross-env": "^7.0.3",
  85. "eslint": "^8.56.0",
  86. "express": "^4.18.2",
  87. "gh-pages": "^3.2.3",
  88. "husky": "^7.0.4",
  89. "jest": "^29.7.0",
  90. "jest-environment-jsdom": "^29.7.0",
  91. "lint-staged": "^10.5.4",
  92. "mockjs": "^1.1.0",
  93. "prettier": "^2.8.8",
  94. "react-dev-inspector": "^1.9.0",
  95. "swagger-ui-dist": "^4.19.1",
  96. "ts-node": "^10.9.2",
  97. "typescript": "^5.3.3",
  98. "umi-presets-pro": "^2.0.3",
  99. "umi-serve": "^1.9.11"
  100. },
  101. "engines": {
  102. "node": ">=12.0.0"
  103. }
  104. }