package.json 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {
  2. "name": "ant-design-pro",
  3. "version": "4.5.0",
  4. "private": true,
  5. "description": "An out-of-box UI solution for enterprise applications",
  6. "scripts": {
  7. "analyze": "cross-env ANALYZE=1 umi build",
  8. "build": "umi build",
  9. "deploy": "npm run site && npm run gh-pages",
  10. "dev": "npm run start:dev",
  11. "fetch:blocks": "pro fetch-blocks && npm run prettier",
  12. "gh-pages": "gh-pages -d dist",
  13. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  14. "postinstall": "umi g tmp",
  15. "lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",
  16. "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
  17. "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
  18. "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
  19. "lint:prettier": "prettier --check \"src/**/*\" --end-of-line auto",
  20. "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  21. "prettier": "prettier -c --write \"src/**/*\"",
  22. "start": "cross-env UMI_ENV=dev umi dev",
  23. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev umi dev",
  24. "start:no-mock": "cross-env MOCK=none UMI_ENV=dev umi dev",
  25. "start:no-ui": "cross-env UMI_UI=none UMI_ENV=dev umi dev",
  26. "start:pre": "cross-env REACT_APP_ENV=pre UMI_ENV=dev umi dev",
  27. "start:test": "cross-env REACT_APP_ENV=test MOCK=none UMI_ENV=dev umi dev",
  28. "pretest": "node ./tests/beforeTest",
  29. "test": "umi test",
  30. "test:all": "node ./tests/run-tests.js",
  31. "test:component": "umi test ./src/components",
  32. "tsc": "tsc --noEmit"
  33. },
  34. "lint-staged": {
  35. "**/*.less": "stylelint --syntax less",
  36. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  37. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  38. "prettier --write"
  39. ]
  40. },
  41. "browserslist": [
  42. "> 1%",
  43. "last 2 versions",
  44. "not ie <= 10"
  45. ],
  46. "dependencies": {
  47. "@ant-design/icons": "^4.0.0",
  48. "@ant-design/pro-card": "^1.11.10",
  49. "@ant-design/pro-descriptions": "^1.2.0",
  50. "@ant-design/pro-form": "^1.3.0",
  51. "@ant-design/pro-layout": "^6.9.0",
  52. "@ant-design/pro-table": "^2.17.0",
  53. "@umijs/route-utils": "^1.0.33",
  54. "ali-oss": "^6.15.2",
  55. "antd": "^4.12.0",
  56. "classnames": "^2.2.6",
  57. "echarts": "^5.1.0",
  58. "lodash": "^4.17.11",
  59. "md5": "^2.3.0",
  60. "moment": "^2.25.3",
  61. "omit.js": "^2.0.2",
  62. "react": "17.0.0",
  63. "react-dev-inspector": "^1.1.1",
  64. "react-dom": "^17.0.0",
  65. "react-helmet-async": "^1.0.4",
  66. "react-player": "^2.9.0",
  67. "react-sortable-hoc": "^2.0.0",
  68. "umi": "^3.4.1",
  69. "umi-request": "^1.0.8",
  70. "wangeditor": "^4.6.15",
  71. "xlsx": "^0.17.1"
  72. },
  73. "devDependencies": {
  74. "@ant-design/pro-cli": "^1.0.28",
  75. "@types/classnames": "^2.2.7",
  76. "@types/express": "^4.17.0",
  77. "@types/history": "^4.7.2",
  78. "@types/jest": "^26.0.0",
  79. "@types/lodash": "^4.14.144",
  80. "@types/react": "^17.0.0",
  81. "@types/react-dom": "^17.0.0",
  82. "@types/react-helmet": "^6.1.0",
  83. "@umijs/fabric": "^2.5.1",
  84. "@umijs/plugin-blocks": "^2.0.5",
  85. "@umijs/plugin-esbuild": "^1.0.1",
  86. "@umijs/preset-ant-design-pro": "^1.2.0",
  87. "@umijs/preset-react": "^1.4.8",
  88. "@umijs/yorkie": "^2.0.3",
  89. "carlo": "^0.9.46",
  90. "chalk": "^4.0.0",
  91. "cross-env": "^7.0.0",
  92. "cross-port-killer": "^1.1.1",
  93. "detect-installer": "^1.0.1",
  94. "enzyme": "^3.11.0",
  95. "eslint": "^7.1.0",
  96. "express": "^4.17.1",
  97. "gh-pages": "^3.0.0",
  98. "jsdom-global": "^3.0.2",
  99. "lint-staged": "^10.0.0",
  100. "mockjs": "^1.0.1-beta3",
  101. "prettier": "^2.0.1",
  102. "puppeteer-core": "^8.0.0",
  103. "stylelint": "^13.0.0",
  104. "typescript": "^4.0.3"
  105. },
  106. "engines": {
  107. "node": ">=10.0.0"
  108. },
  109. "checkFiles": [
  110. "src/**/*.js*",
  111. "src/**/*.ts*",
  112. "src/**/*.less",
  113. "config/**/*.js*",
  114. "scripts/**/*.js"
  115. ]
  116. }