胖子天骄的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.
 
 
 
 

107 lines
3.6 KiB

  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/charts": "^1.4.2",
  52. "@ant-design/icons": "^4.8.0",
  53. "@ant-design/pro-components": "^2.3.44",
  54. "@ant-design/pro-layout": "^7.8.3",
  55. "@ant-design/use-emotion-css": "1.0.4",
  56. "@jiaminghi/data-view-react": "^1.2.5",
  57. "@umijs/route-utils": "^2.2.2",
  58. "antd": "^5.2.3",
  59. "classnames": "^2.3.2",
  60. "eslint-config-prettier": "^8.6.0",
  61. "eslint-plugin-unicorn": "^46.0.0",
  62. "js-md5": "^0.7.3",
  63. "lodash": "^4.17.21",
  64. "moment": "^2.29.4",
  65. "omit.js": "^2.0.2",
  66. "rc-menu": "^9.8.1",
  67. "rc-util": "^5.25.2",
  68. "react": "^18.2.0",
  69. "react-dev-inspector": "^1.8.3",
  70. "react-dom": "^18.2.0",
  71. "react-helmet-async": "^1.3.0",
  72. "uuid": "^9.0.0"
  73. },
  74. "devDependencies": {
  75. "@ant-design/pro-cli": "^2.1.5",
  76. "@testing-library/react": "^13.4.0",
  77. "@types/classnames": "^2.3.1",
  78. "@types/express": "^4.17.14",
  79. "@types/history": "^4.7.11",
  80. "@types/jest": "^29.2.4",
  81. "@types/js-md5": "^0.7.0",
  82. "@types/lodash": "^4.14.191",
  83. "@types/react": "^17.0.52",
  84. "@types/react-dom": "^17.0.18",
  85. "@types/react-helmet": "^6.1.6",
  86. "@umijs/lint": "^4.0.35",
  87. "@umijs/max": "^4.0.55",
  88. "cross-env": "^7.0.3",
  89. "eslint": "^8.29.0",
  90. "express": "^4.18.2",
  91. "gh-pages": "^3.2.3",
  92. "husky": "^7.0.4",
  93. "jest": "^29.3.1",
  94. "jest-environment-jsdom": "^29.3.1",
  95. "lint-staged": "^10.5.4",
  96. "mockjs": "^1.1.0",
  97. "prettier": "^2.8.1",
  98. "swagger-ui-dist": "^4.15.5",
  99. "ts-node": "^10.9.1",
  100. "typescript": "^4.9.4",
  101. "umi-presets-pro": "^2.0.0"
  102. },
  103. "engines": {
  104. "node": ">=12.0.0"
  105. }
  106. }