package.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. {
  2. "name": "perms-system-web",
  3. "version": "6.0.1",
  4. "private": true,
  5. "description": "An out-of-box UI solution for enterprise applications",
  6. "scripts": {
  7. "analyze": "cross-env ANALYZE=1 REACT_APP_ENV=prod UMI_ENV=prod max build",
  8. "build:generic": "cross-env PROD_ID=${npm_config_prod_id:-go-pmp} REACT_APP_ENV=${npm_config_env:-prod} UMI_ENV=${npm_config_env:-prod} max build",
  9. "build:perms-system": "npm run build:perms-system:prod",
  10. "build:perms-system:dev": "npm run build:generic --prod-id=perms-system --env=dev",
  11. "build:perms-system:prod": "npm run build:generic --prod-id=perms-system --env=prod",
  12. "build:perms-system:test": "npm run build:generic --prod-id=perms-system --env=test",
  13. "dev:perms-system": "npm run dev:perms-system:no-mock",
  14. "dev:perms-system:no-mock": "npm run start:generic:no-mock --prod-id=perms-system --env=local",
  15. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  16. "postinstall": "max setup",
  17. "lint": "npm run lint:js && npm run lint:style && npm run prettier",
  18. "lint:js": "max lint --fix --eslint-only",
  19. "lint:style": "max lint src/**/*.{less,scss} --fix --stylelint-only",
  20. "openapi": "max openapi",
  21. "prepare": "husky install",
  22. "prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,scss,md,json}\" --end-of-line auto",
  23. "preview": "max preview --port 8000",
  24. "record": "cross-env NODE_ENV=development REACT_APP_ENV=test max record --scene=login",
  25. "start:generic": "cross-env PROD_ID=${npm_config_prod_id:-go-pmp} REACT_APP_ENV=${npm_config_env:-dev} UMI_ENV=dev max dev",
  26. "start:generic:no-mock": "cross-env PROD_ID=${npm_config_prod_id:-go-pmp} REACT_APP_ENV=${npm_config_env:-dev} MOCK=none UMI_ENV=dev max dev",
  27. "tsc": "tsc --noEmit"
  28. },
  29. "browserslist": [
  30. "> 1%",
  31. "last 2 versions",
  32. "not ie <= 10"
  33. ],
  34. "dependencies": {
  35. "@ant-design/icons": "^4.8.3",
  36. "@ant-design/plots": "^2.6.8",
  37. "@ant-design/pro-components": "^2.8.10",
  38. "@antv/g2": "^5.4.8",
  39. "@antv/l7": "^2.25.4",
  40. "@antv/l7-maps": "^2.25.4",
  41. "@antv/l7-react": "^2.4.3",
  42. "@cap.js/widget": "0.1.31",
  43. "@dnd-kit/core": "^6.3.1",
  44. "@dnd-kit/sortable": "^10.0.0",
  45. "@dnd-kit/utilities": "^3.2.2",
  46. "@iconify/react": "6.0.2",
  47. "@umijs/route-utils": "^2.2.2",
  48. "@wangeditor/editor": "^5.1.23",
  49. "@wangeditor/editor-for-react": "^1.0.6",
  50. "antd": "^5.28.1",
  51. "antd-style": "^3.7.1",
  52. "axios": "0.27.2",
  53. "brotli-wasm": "3.0.1",
  54. "classnames": "^2.5.1",
  55. "copy-to-clipboard": "4.0.2",
  56. "crypto-js": "^4.2.0",
  57. "dayjs": "^1.11.20",
  58. "dayjs-plugin-utc": "^0.1.2",
  59. "echarts": "^6.0.0",
  60. "echarts-for-react": "^3.0.6",
  61. "fflate": "0.8.2",
  62. "file-saver": "^2.0.5",
  63. "js-cookie": "^3.0.5",
  64. "jsoneditor": "^10.4.3",
  65. "lodash-es": "^4.18.1",
  66. "numeral": "^2.0.6",
  67. "omit.js": "^2.0.2",
  68. "pinyin-pro": "3.28.1",
  69. "qs": "^6.15.1",
  70. "ramda": "^0.30.1",
  71. "rc-util": "^5.44.4",
  72. "react": "^18.3.1",
  73. "react-dom": "^18.3.1",
  74. "react-fittext": "^1.0.0",
  75. "xlsx": "0.18.5"
  76. },
  77. "devDependencies": {
  78. "@ant-design/pro-cli": "^2.1.5",
  79. "@iconify-json/ri": "1.2.5",
  80. "@iconify/json": "^2.2.471",
  81. "@iconify/tools": "^4.1.4",
  82. "@svgr/core": "^8.1.0",
  83. "@svgr/plugin-jsx": "^8.1.0",
  84. "@tailwindcss/cli": "4.3.0",
  85. "@testing-library/react": "^13.4.0",
  86. "@trivago/prettier-plugin-sort-imports": "^4.3.0",
  87. "@types/crypto-js": "^4.2.2",
  88. "@types/express": "^4.17.25",
  89. "@types/file-saver": "^2.0.7",
  90. "@types/history": "^4.7.11",
  91. "@types/jest": "^29.5.14",
  92. "@types/js-cookie": "^3.0.6",
  93. "@types/jsoneditor": "^9.9.6",
  94. "@types/lodash-es": "^4.17.12",
  95. "@types/lodash.debounce": "^4.0.9",
  96. "@types/qs": "^6.15.1",
  97. "@types/ramda": "^0.30.2",
  98. "@types/react": "^18.3.26",
  99. "@types/react-dom": "^18.3.7",
  100. "@types/react-helmet": "^6.1.11",
  101. "@umijs/fabric": "^2.14.1",
  102. "@umijs/lint": "^4.6.52",
  103. "@umijs/max": "^4.6.52",
  104. "autoprefixer": "^10.5.0",
  105. "babel-plugin-transform-remove-console": "^6.9.4",
  106. "cross-env": "^7.0.3",
  107. "eslint": "^8.57.1",
  108. "express": "^4.21.2",
  109. "gh-pages": "^3.2.3",
  110. "glob": "^11.0.3",
  111. "husky": "^8.0.3",
  112. "jest": "^29.7.0",
  113. "jest-environment-jsdom": "^29.7.0",
  114. "lint-staged": "^13.3.0",
  115. "mockjs": "^1.1.0",
  116. "postcss": "^8.5.14",
  117. "prettier": "^3.8.3",
  118. "prettier-plugin-organize-imports": "^3.2.4",
  119. "prettier-plugin-packagejson": "^2.5.19",
  120. "prettier-plugin-two-style-order": "^1.0.1",
  121. "react-dev-inspector": "^1.9.0",
  122. "stylelint": "^14.16.1",
  123. "stylelint-scss": "^6.12.1",
  124. "swagger-ui-dist": "^4.19.1",
  125. "tailwindcss": "^4.3.0",
  126. "ts-node": "^10.9.2",
  127. "typescript": "^5.9.3",
  128. "umi-presets-pro": "^2.0.3"
  129. },
  130. "packageManager": "[email protected]",
  131. "engines": {
  132. "node": ">=18.20.6"
  133. }
  134. }