胖子天骄的MES系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

package.json 3.5 KiB

1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {
  2. "name": "ant-design-pro",
  3. "version": "6.0.0",
  4. "license": "ISC",
  5. "private": true,
  6. "description": "An out-of-box UI solution for enterprise applications",
  7. "scripts": {
  8. "analyze": "cross-env ANALYZE=1 max build",
  9. "build": "max build",
  10. "deploy": "npm run build && npm run gh-pages",
  11. "dev": "npm run start:dev",
  12. "gh-pages": "gh-pages -d dist",
  13. "i18n-remove": "pro i18n-remove --write",
  14. "postinstall": "max setup",
  15. "jest": "jest",
  16. "lint": "npm run lint:js && npm run lint:prettier && npm run tsc",
  17. "lint-staged": "lint-staged",
  18. "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
  19. "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src ",
  20. "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
  21. "lint:prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\" --end-of-line auto",
  22. "openapi": "max openapi",
  23. "prepare": "cd ../.. && husky install frontend/.husky",
  24. "prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"",
  25. "preview": "npm run build && max preview --port 8000",
  26. "record": "cross-env NODE_ENV=development REACT_APP_ENV=test max record --scene=login",
  27. "serve": "umi-serve",
  28. "start:mock": "cross-env UMI_ENV=dev max dev",
  29. "start": "cross-env UMI_ENV=dev max dev",
  30. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev max dev",
  31. "start:no-mock": "cross-env MOCK=none UMI_ENV=dev max dev",
  32. "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev max dev",
  33. "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev max dev",
  34. "test": "jest",
  35. "test:coverage": "npm run jest -- --coverage",
  36. "test:update": "npm run jest -- -u",
  37. "tsc": "tsc --noEmit"
  38. },
  39. "lint-staged": {
  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/icons": "^4.8.0",
  52. "@ant-design/pro-components": "^2.3.44",
  53. "@ant-design/pro-layout": "^7.8.3",
  54. "@ant-design/use-emotion-css": "1.0.4",
  55. "@umijs/route-utils": "^2.2.2",
  56. "antd": "^5.2.3",
  57. "classnames": "^2.3.2",
  58. "eslint-config-prettier": "^8.6.0",
  59. "eslint-plugin-unicorn": "^46.0.0",
  60. "js-md5": "^0.7.3",
  61. "lodash": "^4.17.21",
  62. "moment": "^2.29.4",
  63. "omit.js": "^2.0.2",
  64. "rc-menu": "^9.8.1",
  65. "rc-util": "^5.25.2",
  66. "react": "^18.2.0",
  67. "react-dev-inspector": "^1.8.3",
  68. "react-dom": "^18.2.0",
  69. "react-helmet-async": "^1.3.0",
  70. "uuid": "^9.0.0"
  71. },
  72. "devDependencies": {
  73. "@ant-design/pro-cli": "^2.1.5",
  74. "@testing-library/react": "^13.4.0",
  75. "@types/classnames": "^2.3.1",
  76. "@types/express": "^4.17.14",
  77. "@types/history": "^4.7.11",
  78. "@types/jest": "^29.2.4",
  79. "@types/js-md5": "^0.7.0",
  80. "@types/lodash": "^4.14.191",
  81. "@types/react": "^17.0.52",
  82. "@types/react-dom": "^17.0.18",
  83. "@types/react-helmet": "^6.1.6",
  84. "@umijs/lint": "^4.0.35",
  85. "@umijs/max": "^4.0.55",
  86. "cross-env": "^7.0.3",
  87. "eslint": "^8.29.0",
  88. "express": "^4.18.2",
  89. "gh-pages": "^3.2.3",
  90. "husky": "^7.0.4",
  91. "jest": "^29.3.1",
  92. "jest-environment-jsdom": "^29.3.1",
  93. "lint-staged": "^10.5.4",
  94. "mockjs": "^1.1.0",
  95. "prettier": "^2.8.1",
  96. "swagger-ui-dist": "^4.15.5",
  97. "ts-node": "^10.9.1",
  98. "typescript": "^4.9.4",
  99. "umi-presets-pro": "^2.0.0"
  100. },
  101. "engines": {
  102. "node": ">=12.0.0"
  103. }
  104. }