Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

124 linhas
4.1 KiB

  1. {
  2. "name": "ant-design-pro",
  3. "version": "5.0.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",
  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. "precommit": "lint-staged",
  23. "prettier": "prettier -c --write \"src/**/*\"",
  24. "start": "cross-env UMI_ENV=dev umi dev",
  25. "start:umi-ui": "HOST=0.0.0.0 UMI-UI=1 umi dev",
  26. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev umi dev",
  27. "start:no-mock": "cross-env MOCK=none UMI_ENV=dev umi dev",
  28. "start:no-ui": "cross-env UMI_UI=none UMI_ENV=dev umi dev",
  29. "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev umi dev",
  30. "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev umi dev",
  31. "pretest": "node ./tests/beforeTest",
  32. "test": "umi test",
  33. "test:all": "node ./tests/run-tests.js",
  34. "test:component": "umi test ./src/components",
  35. "serve": "umi-serve",
  36. "tsc": "tsc --noEmit"
  37. },
  38. "lint-staged": {
  39. "**/*.less": "stylelint --syntax less",
  40. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  41. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  42. "prettier --write"
  43. ]
  44. },
  45. "browserslist": [
  46. "> 1%",
  47. "last 2 versions",
  48. "not ie <= 10"
  49. ],
  50. "dependencies": {
  51. "@ant-design/charts": "^1.2.14",
  52. "@ant-design/icons": "^4.5.0",
  53. "@ant-design/pro-card": "^1.18.0",
  54. "@ant-design/pro-descriptions": "^1.10.0",
  55. "@ant-design/pro-form": "^1.48.0",
  56. "@ant-design/pro-layout": "^6.29.0",
  57. "@ant-design/pro-list": "^1.21.37",
  58. "@ant-design/pro-table": "^2.57.0",
  59. "@ant-design/pro-utils": "^1.28.0",
  60. "@umijs/route-utils": "^2.0.3",
  61. "antd": "^4.17.0",
  62. "axios": "^0.26.1",
  63. "braft-editor": "^2.3.9",
  64. "classnames": "^2.2.6",
  65. "cos-js-sdk-v5": "^1.3.5",
  66. "echarts": "^5.3.3",
  67. "js-export-excel": "^1.1.4",
  68. "linq": "^4.0.0",
  69. "lodash": "^4.17.11",
  70. "moment": "^2.25.3",
  71. "omit.js": "^2.0.2",
  72. "qrcode.react": "^1.0.1",
  73. "react": "^17.0.0",
  74. "react-dev-inspector": "^1.1.1",
  75. "react-dom": "^17.0.0",
  76. "react-helmet-async": "^1.0.4",
  77. "swagger-ui-react": "^4.14.0",
  78. "umi": "^3.5.0",
  79. "umi-serve": "^1.9.10"
  80. },
  81. "devDependencies": {
  82. "@ant-design/pro-cli": "^2.0.2",
  83. "@types/express": "^4.17.0",
  84. "@types/history": "^4.7.2",
  85. "@types/jest": "^27.0.2",
  86. "@types/lodash": "^4.14.177",
  87. "@types/react": "^17.0.35",
  88. "@types/react-dom": "^17.0.0",
  89. "@types/react-helmet": "^6.1.0",
  90. "@umijs/fabric": "^2.6.2",
  91. "@umijs/openapi": "^1.3.6",
  92. "@umijs/plugin-blocks": "^2.0.5",
  93. "@umijs/plugin-esbuild": "^1.0.1",
  94. "@umijs/plugin-openapi": "^1.2.0",
  95. "@umijs/preset-ant-design-pro": "^1.2.0",
  96. "@umijs/preset-dumi": "^1.1.32",
  97. "@umijs/preset-react": "^1.8.27",
  98. "@umijs/preset-ui": "^2.2.9",
  99. "@umijs/yorkie": "^2.0.3",
  100. "carlo": "^0.9.46",
  101. "cross-env": "^7.0.0",
  102. "cross-port-killer": "^1.1.1",
  103. "detect-installer": "^1.0.1",
  104. "enzyme": "^3.11.0",
  105. "eslint": "^8.2.0",
  106. "eslint-plugin-react": "^7.29.4",
  107. "express": "^4.17.1",
  108. "gh-pages": "^3.0.0",
  109. "jsdom-global": "^3.0.2",
  110. "lint-staged": "^12.0.2",
  111. "mockjs": "^1.0.1-beta3",
  112. "prettier": "^2.3.2",
  113. "puppeteer-core": "^11.0.0",
  114. "stylelint": "^14.1.0",
  115. "typescript": "^4.2.2"
  116. },
  117. "engines": {
  118. "node": ">=10.0.0"
  119. },
  120. "gitHooks": {
  121. "commit-msg": "fabric verify-commit"
  122. }
  123. }