package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {
  2. "name": "ybee.eqm",
  3. "version": "1.0.0",
  4. "private": true,
  5. "description": "",
  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. "gapi": "node ./scripts/gapi/index.js",
  12. "gh-pages": "gh-pages -d dist",
  13. "i18n-remove": "pro i18n-remove --locale=zh-CN --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": "husky install",
  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": "cross-env UMI_ENV=dev max dev",
  29. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev max dev",
  30. "start:no-mock": "cross-env MOCK=none UMI_ENV=dev max dev",
  31. "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev max dev",
  32. "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev max dev",
  33. "test": "jest",
  34. "test:coverage": "npm run jest -- --coverage",
  35. "test:update": "npm run jest -- -u",
  36. "tsc": "tsc --noEmit"
  37. },
  38. "lint-staged": {
  39. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  40. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  41. "prettier --write"
  42. ]
  43. },
  44. "browserslist": [
  45. "> 1%",
  46. "last 2 versions",
  47. "not ie <= 10"
  48. ],
  49. "dependencies": {
  50. "@ant-design/icons": "^5.1.4",
  51. "@ant-design/pro-components": "^2.6.35",
  52. "@ant-design/use-emotion-css": "1.0.4",
  53. "@reduxjs/toolkit": "^1.9.5",
  54. "@umijs/route-utils": "^4.0.1",
  55. "ahooks": "^3.7.8",
  56. "antd": "^5.11.2",
  57. "bignumber.js": "^9.1.1",
  58. "classnames": "^2.3.2",
  59. "content-disposition": "^0.5.4",
  60. "echarts": "^5.4.3",
  61. "jsencrypt": "^3.3.2",
  62. "lodash": "^4.17.21",
  63. "moment": "^2.29.4",
  64. "omit.js": "^2.0.2",
  65. "query-string": "^8.1.0",
  66. "rc-menu": "^9.8.2",
  67. "rc-util": "^5.27.2",
  68. "react": "^18.2.0",
  69. "react-dev-inspector": "^2.0.0",
  70. "react-dom": "^18.2.0",
  71. "react-draggable": "^4.4.5",
  72. "react-helmet-async": "^1.3.0",
  73. "react-json-view": "^1.21.3",
  74. "vanilla-jsoneditor": "^0.18.11"
  75. },
  76. "devDependencies": {
  77. "@ant-design/pro-cli": "^3.1.0",
  78. "@testing-library/react": "^14.0.0",
  79. "@types/babel__core": "^7.20.4",
  80. "@types/babel__generator": "^7.6.7",
  81. "@types/classnames": "^2.3.1",
  82. "@types/express": "^4.17.17",
  83. "@types/history": "^5.0.0",
  84. "@types/jest": "^29.5.3",
  85. "@types/lodash": "^4.14.191",
  86. "@types/react": "^18.2.15",
  87. "@types/react-dom": "^18.2.7",
  88. "@types/react-helmet": "^6.1.6",
  89. "@umijs/fabric": "^4.0.1",
  90. "@umijs/lint": "^4.0.52",
  91. "@umijs/max": "^4.0.52",
  92. "cross-env": "^7.0.3",
  93. "eslint": "^8.45.0",
  94. "express": "^4.18.2",
  95. "gh-pages": "^5.0.0",
  96. "husky": "^8.0.3",
  97. "jest": "^29.6.1",
  98. "jest-environment-jsdom": "^29.6.1",
  99. "lint-staged": "^13.2.3",
  100. "mockjs": "^1.1.0",
  101. "prettier": "^3.0.0",
  102. "ts-node": "^10.9.1",
  103. "typescript": "^5.1.6",
  104. "umi-presets-pro": "^2.0.2"
  105. },
  106. "engines": {
  107. "node": ">=12.0.0"
  108. }
  109. }