package.json 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. {
  2. "name": "ant-design-pro",
  3. "version": "5.2.0",
  4. "private": true,
  5. "description": "An out-of-box UI solution for enterprise applications",
  6. "scripts": {
  7. "analyze": "cross-env ANALYZE=1 umi build",
  8. "build": "umi 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": "umi g tmp",
  14. "lint": "umi g tmp && npm run lint:js && npm run lint:style && 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 && npm run lint:style",
  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. "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  21. "openapi": "umi openapi",
  22. "playwright": "playwright install && playwright test",
  23. "prepare": "husky install",
  24. "prettier": "prettier -c --write \"src/**/*\"",
  25. "serve": "umi-serve",
  26. "start": "cross-env UMI_ENV=dev umi dev",
  27. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev umi dev",
  28. "start:no-mock": "cross-env MOCK=none UMI_ENV=dev umi dev",
  29. "start:no-ui": "cross-env UMI_UI=none UMI_ENV=dev umi dev",
  30. "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev umi dev",
  31. "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev umi dev",
  32. "test": "umi test",
  33. "test:component": "umi test ./src/components",
  34. "test:e2e": "node ./tests/run-tests.js",
  35. "tsc": "tsc --noEmit"
  36. },
  37. "lint-staged": {
  38. "**/*.less": "stylelint --syntax less",
  39. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  40. "**/*.{js,jsx,tsx,ts,less,md,json}": ["prettier --write"]
  41. },
  42. "browserslist": ["> 1%", "last 2 versions", "not ie <= 10"],
  43. "dependencies": {
  44. "@ant-design/icons": "^4.7.0",
  45. "@ant-design/pro-components": "1.1.1",
  46. "@umijs/route-utils": "^2.0.0",
  47. "antd": "^4.23.3",
  48. "classnames": "^2.3.0",
  49. "lodash": "^4.17.0",
  50. "moment": "^2.29.0",
  51. "omit.js": "^2.0.2",
  52. "rc-menu": "^9.1.0",
  53. "rc-util": "^5.16.0",
  54. "react": "^17.0.0",
  55. "react-dev-inspector": "^1.7.0",
  56. "react-dom": "^17.0.0",
  57. "react-helmet-async": "^1.2.0",
  58. "umi": "^3.5.0"
  59. },
  60. "devDependencies": {
  61. "@ant-design/pro-cli": "^2.1.0",
  62. "@playwright/test": "^1.17.0",
  63. "@types/classnames": "^2.3.1",
  64. "@types/express": "^4.17.0",
  65. "@types/history": "^4.7.0",
  66. "@types/jest": "^26.0.0",
  67. "@types/lodash": "^4.14.0",
  68. "@types/react": "^17.0.0",
  69. "@types/react-dom": "^17.0.0",
  70. "@types/react-helmet": "^6.1.0",
  71. "@umijs/fabric": "^2.11.1",
  72. "@umijs/openapi": "^1.6.0",
  73. "@umijs/plugin-blocks": "^2.2.0",
  74. "@umijs/plugin-esbuild": "^1.4.0",
  75. "@umijs/plugin-openapi": "^1.3.3",
  76. "@umijs/preset-ant-design-pro": "^1.3.0",
  77. "@umijs/preset-dumi": "^1.1.0",
  78. "@umijs/preset-react": "^2.1.0",
  79. "cross-env": "^7.0.0",
  80. "cross-port-killer": "^1.3.0",
  81. "detect-installer": "^1.0.0",
  82. "eslint": "^7.32.0",
  83. "gh-pages": "^3.2.0",
  84. "husky": "^7.0.4",
  85. "jsdom-global": "^3.0.0",
  86. "lint-staged": "^10.0.0",
  87. "mockjs": "^1.1.0",
  88. "prettier": "^2.5.0",
  89. "stylelint": "^13.0.0",
  90. "swagger-ui-dist": "^4.12.0",
  91. "typescript": "^4.5.0",
  92. "umi-serve": "^1.9.10"
  93. },
  94. "engines": { "node": ">=12.0.0" }
  95. }