package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. {
  2. "name": "qc-sourcematerial",
  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. "build:dev": "max build REACT_APP_ENV=dev",
  10. "build:prod": "max build REACT_APP_ENV=prod",
  11. "deploy": "npm run build && npm run gh-pages",
  12. "dev": "npm run start:dev",
  13. "gh-pages": "gh-pages -d dist",
  14. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  15. "postinstall": "max setup",
  16. "jest": "jest",
  17. "lint": "npm run lint:js && npm run lint:prettier && npm run tsc",
  18. "lint-staged": "lint-staged",
  19. "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
  20. "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src ",
  21. "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
  22. "lint:prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\" --end-of-line auto",
  23. "openapi": "max openapi",
  24. "prepare": "husky install",
  25. "prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"",
  26. "preview": "npm run build && max preview --port 8000",
  27. "record": "cross-env NODE_ENV=development REACT_APP_ENV=test max record --scene=login",
  28. "serve": "umi-serve",
  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.6.31",
  53. "@ant-design/use-emotion-css": "1.0.4",
  54. "@types/spark-md5": "^3.0.3",
  55. "@umijs/route-utils": "^2.2.2",
  56. "ahooks": "^3.7.8",
  57. "antd": "^5.2.2",
  58. "classnames": "^2.3.2",
  59. "lodash": "^4.17.21",
  60. "moment": "^2.29.4",
  61. "omit.js": "^2.0.2",
  62. "rc-menu": "^9.8.2",
  63. "rc-util": "^5.27.2",
  64. "react": "^18.2.0",
  65. "react-dev-inspector": "^1.8.4",
  66. "react-dom": "^18.2.0",
  67. "react-helmet-async": "^1.3.0",
  68. "react-infinite-scroll-component": "^6.1.0",
  69. "spark-md5": "^3.0.2"
  70. },
  71. "devDependencies": {
  72. "@ant-design/pro-cli": "^2.1.5",
  73. "@testing-library/react": "^13.4.0",
  74. "@types/classnames": "^2.3.1",
  75. "@types/express": "^4.17.17",
  76. "@types/history": "^4.7.11",
  77. "@types/jest": "^29.4.0",
  78. "@types/lodash": "^4.14.191",
  79. "@types/react": "^18.0.28",
  80. "@types/react-dom": "^18.0.11",
  81. "@types/react-helmet": "^6.1.6",
  82. "@umijs/fabric": "^2.14.1",
  83. "@umijs/lint": "^4.0.52",
  84. "@umijs/max": "^4.0.52",
  85. "cross-env": "^7.0.3",
  86. "eslint": "^8.34.0",
  87. "express": "^4.18.2",
  88. "gh-pages": "^3.2.3",
  89. "husky": "^7.0.4",
  90. "jest": "^29.4.3",
  91. "jest-environment-jsdom": "^29.4.3",
  92. "lint-staged": "^10.5.4",
  93. "mockjs": "^1.1.0",
  94. "prettier": "^2.8.4",
  95. "swagger-ui-dist": "^4.15.5",
  96. "ts-node": "^10.9.1",
  97. "typescript": "^4.9.5",
  98. "umi-presets-pro": "^2.0.2"
  99. },
  100. "engines": {
  101. "node": ">=12.0.0"
  102. }
  103. }