package.json 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {
  2. "name": "ant-design-pro",
  3. "version": "6.0.0-beta.1",
  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. "lint": "npm run lint:js && 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 ",
  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. "playwright": "playwright install && playwright test",
  21. "prepare": "husky install",
  22. "prettier": "prettier -c --write \"src/**/*\"",
  23. "serve": "umi-serve",
  24. "start": "cross-env UMI_ENV=dev max dev",
  25. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev max dev",
  26. "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev max dev",
  27. "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev max dev",
  28. "test:e2e": "node ./tests/run-tests.js",
  29. "tsc": "tsc --noEmit"
  30. },
  31. "lint-staged": {
  32. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  33. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  34. "prettier --write"
  35. ]
  36. },
  37. "browserslist": [
  38. "> 1%",
  39. "last 2 versions",
  40. "not ie <= 10"
  41. ],
  42. "dependencies": {
  43. "@ant-design/icons": "^4.7.0",
  44. "@ant-design/pro-components": "^2.3.13",
  45. "@umijs/route-utils": "^2.1.3",
  46. "antd": "^4.23.3",
  47. "classnames": "^2.3.2",
  48. "lodash": "^4.17.21",
  49. "moment": "^2.29.4",
  50. "omit.js": "^2.0.2",
  51. "rc-menu": "^9.6.4",
  52. "rc-util": "^5.24.4",
  53. "react": "^17.0.0",
  54. "react-dev-inspector": "^1.8.1",
  55. "react-dom": "^17.0.0",
  56. "react-helmet-async": "^1.3.0"
  57. },
  58. "devDependencies": {
  59. "@ant-design/pro-cli": "^2.1.0",
  60. "@playwright/test": "^1.26.1",
  61. "@types/classnames": "^2.3.1",
  62. "@types/express": "^4.17.14",
  63. "@types/history": "^4.7.11",
  64. "@types/lodash": "^4.14.186",
  65. "@types/react": "^17.0.0",
  66. "@types/react-dom": "^17.0.0",
  67. "@types/react-helmet": "^6.1.5",
  68. "@umijs/fabric": "^2.11.1",
  69. "@umijs/max": "^4.0.24",
  70. "cross-env": "^7.0.3",
  71. "cross-port-killer": "^1.4.0",
  72. "detect-installer": "^1.0.2",
  73. "eslint": "^7.32.0",
  74. "gh-pages": "^3.2.0",
  75. "husky": "^7.0.4",
  76. "lint-staged": "^10.0.0",
  77. "prettier": "^2.7.1",
  78. "swagger-ui-dist": "^4.14.2",
  79. "typescript": "^4.8.4",
  80. "umi-presets-pro": "^1.0.5",
  81. "umi-serve": "^1.9.11"
  82. },
  83. "engines": {
  84. "node": ">=12.0.0"
  85. }
  86. }