package.json 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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}": ["prettier --write"]
  40. },
  41. "browserslist": ["> 1%", "last 2 versions", "not ie <= 10"],
  42. "dependencies": {
  43. "@ant-design/icons": "^4.8.1",
  44. "@ant-design/pro-components": "^2.6.48",
  45. "@umijs/route-utils": "^2.2.2",
  46. "antd": "^5.13.2",
  47. "antd-style": "^3.6.1",
  48. "classnames": "^2.5.1",
  49. "lodash": "^4.17.21",
  50. "moment": "^2.30.1",
  51. "omit.js": "^2.0.2",
  52. "querystring": "^0.2.1",
  53. "rc-menu": "^9.12.4",
  54. "rc-util": "^5.38.1",
  55. "react": "^18.2.0",
  56. "react-dom": "^18.2.0",
  57. "react-helmet-async": "^1.3.0"
  58. },
  59. "devDependencies": {
  60. "@ant-design/pro-cli": "^3.3.0",
  61. "@testing-library/react": "^13.4.0",
  62. "@types/classnames": "^2.3.1",
  63. "@types/express": "^4.17.21",
  64. "@types/history": "^4.7.11",
  65. "@types/jest": "^29.5.11",
  66. "@types/lodash": "^4.14.202",
  67. "@types/react": "^18.2.48",
  68. "@types/react-dom": "^18.2.18",
  69. "@types/react-helmet": "^6.1.11",
  70. "@umijs/fabric": "^2.14.1",
  71. "@umijs/lint": "^4.1.1",
  72. "@umijs/max": "^4.1.1",
  73. "cross-env": "^7.0.3",
  74. "eslint": "^8.56.0",
  75. "express": "^4.18.2",
  76. "gh-pages": "^3.2.3",
  77. "husky": "^7.0.4",
  78. "jest": "^29.7.0",
  79. "jest-environment-jsdom": "^29.7.0",
  80. "lint-staged": "^10.5.4",
  81. "mockjs": "^1.1.0",
  82. "prettier": "^2.8.8",
  83. "react-dev-inspector": "^1.9.0",
  84. "swagger-ui-dist": "^4.19.1",
  85. "ts-node": "^10.9.2",
  86. "typescript": "^5.3.3",
  87. "umi-presets-pro": "^2.0.3",
  88. "umi-serve": "^1.9.11"
  89. },
  90. "engines": { "node": ">=12.0.0" }
  91. }