package.json 4.8 KB

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