package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {
  2. "name": "ybee.eqm",
  3. "version": "1.0.1",
  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.3.0",
  51. "@ant-design/pro-components": "^2.6.47",
  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.14.0",
  57. "better-xlsx": "^0.7.6",
  58. "bignumber.js": "^9.1.1",
  59. "classnames": "^2.3.2",
  60. "content-disposition": "^0.5.4",
  61. "echarts": "^5.4.3",
  62. "file-saver": "^2.0.5",
  63. "jsencrypt": "^3.3.2",
  64. "lodash": "^4.17.21",
  65. "moment": "^2.29.4",
  66. "omit.js": "^2.0.2",
  67. "query-string": "^8.1.0",
  68. "rc-menu": "^9.8.2",
  69. "rc-util": "^5.27.2",
  70. "react": "^18.2.0",
  71. "react-dev-inspector": "^2.0.0",
  72. "react-dom": "^18.2.0",
  73. "react-draggable": "^4.4.5",
  74. "react-helmet-async": "^1.3.0",
  75. "react-json-view": "^1.21.3",
  76. "vanilla-jsoneditor": "^0.18.11",
  77. "xlsx": "^0.18.5"
  78. },
  79. "devDependencies": {
  80. "@ant-design/pro-cli": "^3.1.0",
  81. "@testing-library/react": "^14.0.0",
  82. "@types/babel__core": "^7.20.4",
  83. "@types/babel__generator": "^7.6.7",
  84. "@types/classnames": "^2.3.1",
  85. "@types/express": "^4.17.17",
  86. "@types/history": "^5.0.0",
  87. "@types/jest": "^29.5.3",
  88. "@types/lodash": "^4.14.191",
  89. "@types/react": "^18.2.15",
  90. "@types/react-dom": "^18.2.7",
  91. "@types/react-helmet": "^6.1.6",
  92. "@umijs/fabric": "^4.0.1",
  93. "@umijs/lint": "^4.0.52",
  94. "@umijs/max": "^4.0.52",
  95. "cross-env": "^7.0.3",
  96. "eslint": "^8.45.0",
  97. "express": "^4.18.2",
  98. "gh-pages": "^5.0.0",
  99. "husky": "^8.0.3",
  100. "jest": "^29.6.1",
  101. "jest-environment-jsdom": "^29.6.1",
  102. "lint-staged": "^13.2.3",
  103. "mockjs": "^1.1.0",
  104. "prettier": "^3.0.0",
  105. "ts-node": "^10.9.1",
  106. "typescript": "^5.1.6",
  107. "umi-presets-pro": "^2.0.2"
  108. },
  109. "engines": {
  110. "node": ">=12.0.0"
  111. }
  112. }