You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

package.json 4.8 kB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. "docker-hub:build": "docker build -f Dockerfile.hub -t ant-design-pro ./",
  12. "docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build",
  13. "docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up",
  14. "docker:build": "docker-compose -f ./docker/docker-compose.dev.yml build",
  15. "docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up",
  16. "docker:push": "npm run docker-hub:build && npm run docker:tag && docker push antdesign/ant-design-pro",
  17. "docker:tag": "docker tag ant-design-pro antdesign/ant-design-pro",
  18. "gh-pages": "gh-pages -d dist",
  19. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  20. "postinstall": "max setup",
  21. "jest": "jest",
  22. "lint": "npm run lint:js && npm run lint:prettier && npm run tsc",
  23. "lint-staged": "lint-staged",
  24. "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
  25. "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src ",
  26. "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
  27. "lint:prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\" --end-of-line auto",
  28. "openapi": "max openapi",
  29. "prepare": "cd .. && husky install",
  30. "prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"",
  31. "preview": "npm run build && max preview --port 8000",
  32. "record": "cross-env NODE_ENV=development REACT_APP_ENV=test max record --scene=login",
  33. "serve": "umi-serve",
  34. "start": "cross-env UMI_ENV=dev max dev",
  35. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev UMI_DEV_SERVER_COMPRESS=none max dev",
  36. "start:mock": "cross-env REACT_APP_ENV=dev UMI_ENV=dev max dev",
  37. "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev max dev",
  38. "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev max dev",
  39. "test": "jest",
  40. "test:coverage": "npm run jest -- --coverage",
  41. "test:update": "npm run jest -- -u",
  42. "tsc": "tsc --noEmit"
  43. },
  44. "lint-staged": {
  45. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  46. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  47. "prettier --write"
  48. ]
  49. },
  50. "browserslist": [
  51. "> 1%",
  52. "last 2 versions",
  53. "not ie <= 10"
  54. ],
  55. "dependencies": {
  56. "@ant-design/icons": "^5.0.0",
  57. "@ant-design/pro-components": "^2.4.4",
  58. "@ant-design/use-emotion-css": "1.0.4",
  59. "@antv/g6": "^4.8.24",
  60. "@antv/hierarchy": "^0.6.12",
  61. "@types/crypto-js": "^4.2.2",
  62. "@umijs/route-utils": "^4.0.1",
  63. "antd": "^5.4.4",
  64. "classnames": "^2.3.2",
  65. "crypto-js": "^4.2.0",
  66. "echarts": "^5.5.0",
  67. "fabric": "^5.3.0",
  68. "highlight.js": "^11.7.0",
  69. "lodash": "^4.17.21",
  70. "moment": "^2.30.1",
  71. "omit.js": "^2.0.2",
  72. "pnpm": "^8.9.0",
  73. "query-string": "^8.1.0",
  74. "rc-menu": "^9.8.4",
  75. "rc-util": "^5.30.0",
  76. "react": "^18.2.0",
  77. "react-activation": "^0.12.4",
  78. "react-cropper": "^2.3.3",
  79. "react-dev-inspector": "^1.8.1",
  80. "react-dom": "^18.2.0",
  81. "react-draggable": "^4.4.6",
  82. "react-helmet-async": "^1.3.0",
  83. "react-highlight": "^0.15.0"
  84. },
  85. "devDependencies": {
  86. "@ant-design/pro-cli": "^3.1.0",
  87. "@testing-library/react": "^14.0.0",
  88. "@types/antd": "^1.0.0",
  89. "@types/express": "^4.17.14",
  90. "@types/jest": "^29.5.1",
  91. "@types/lodash": "^4.14.194",
  92. "@types/react": "^18.0.38",
  93. "@types/react-dom": "^18.0.11",
  94. "@types/react-helmet": "^6.1.5",
  95. "@types/react-highlight": "^0.12.5",
  96. "@umijs/lint": "^4.0.66",
  97. "@umijs/max": "^4.0.66",
  98. "cross-env": "^7.0.3",
  99. "eslint": "^8.39.0",
  100. "express": "^4.18.2",
  101. "gh-pages": "^5.0.0",
  102. "husky": "^8.0.3",
  103. "jest": "^29.5.0",
  104. "jest-environment-jsdom": "^29.5.0",
  105. "lint-staged": "^13.2.0",
  106. "mockjs": "^1.1.0",
  107. "prettier": "^2.8.1",
  108. "swagger-ui-dist": "^4.18.2",
  109. "ts-node": "^10.9.1",
  110. "typescript": "^5.0.4",
  111. "umi-presets-pro": "^2.0.0"
  112. },
  113. "engines": {
  114. "node": ">=12.0.0"
  115. },
  116. "create-umi": {
  117. "ignoreScript": [
  118. "docker*",
  119. "functions*",
  120. "site",
  121. "generateMock"
  122. ],
  123. "ignoreDependencies": [
  124. "netlify*",
  125. "serverless"
  126. ],
  127. "ignore": [
  128. ".dockerignore",
  129. ".git",
  130. ".github",
  131. ".gitpod.yml",
  132. "CODE_OF_CONDUCT.md",
  133. "Dockerfile",
  134. "Dockerfile.*",
  135. "lambda",
  136. "LICENSE",
  137. "netlify.toml",
  138. "README.*.md",
  139. "azure-pipelines.yml",
  140. "docker",
  141. "CNAME",
  142. "create-umi"
  143. ]
  144. }
  145. }