package.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. {
  2. "name": "ant-design-pro",
  3. "version": "4.3.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:qa": "cross-env REACT_APP_ENV=dev auto-deploy build -t qa",
  10. "deploy:prod": "cross-env REACT_APP_ENV=prod auto-deploy build -t prod",
  11. "deploy-gh-pages": "npm run site && npm run gh-pages",
  12. "dev": "npm run start:dev",
  13. "fetch:blocks": "pro fetch-blocks && npm run prettier",
  14. "gh-pages": "gh-pages -d dist",
  15. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  16. "postinstall": "umi g tmp",
  17. "lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",
  18. "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
  19. "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
  20. "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
  21. "lint:prettier": "prettier --check \"src/**/*\" --end-of-line auto",
  22. "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  23. "precommit": "lint-staged",
  24. "prettier": "prettier -c --write \"src/**/*\"",
  25. "start": "umi dev",
  26. "start:dev": "cross-env PORT=8080 REACT_APP_ENV=dev MOCK=none umi dev",
  27. "start:org": "cross-env PORT=8080 REACT_APP_ENV=org MOCK=none umi dev",
  28. "start:no-mock": "cross-env MOCK=none umi dev",
  29. "start:no-ui": "cross-env UMI_UI=none umi dev",
  30. "start:pre": "cross-env REACT_APP_ENV=pre umi dev",
  31. "start:test": "cross-env REACT_APP_ENV=test MOCK=none umi dev",
  32. "pretest": "node ./tests/beforeTest",
  33. "test": "umi test",
  34. "test:all": "node ./tests/run-tests.js",
  35. "test:component": "umi test ./src/components",
  36. "tsc": "tsc --noEmit"
  37. },
  38. "lint-staged": {
  39. "**/*.less": "stylelint --syntax less",
  40. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  41. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  42. "prettier --write"
  43. ]
  44. },
  45. "browserslist": [
  46. "> 1%",
  47. "last 2 versions",
  48. "not ie <= 10"
  49. ],
  50. "dependencies": {
  51. "@ant-design/charts": "1.3.2",
  52. "@ant-design/icons": "^4.0.0",
  53. "@ant-design/pro-form": "1.42.1",
  54. "@ant-design/pro-layout": "6.19.3",
  55. "@ant-design/pro-table": "2.60.0",
  56. "@icon-park/react": "^1.3.3",
  57. "@umijs/route-utils": "^1.0.33",
  58. "ahooks": "^2.10.0",
  59. "antd": "4.18.5",
  60. "antd-img-crop": "^3.16.0",
  61. "classnames": "^2.2.6",
  62. "crypto-js": "^4.0.0",
  63. "dayjs": "^1.10.4",
  64. "lodash-es": "^4.17.21",
  65. "omit.js": "^2.0.2",
  66. "qs": "^6.9.4",
  67. "rc-queue-anim": "^2.0.0",
  68. "rc-util": "^5.16.1",
  69. "react": "17.0.2",
  70. "react-copy-to-clipboard": "^5.0.4",
  71. "react-dom": "17.0.2",
  72. "react-infinite-scroll-component": "^6.1.0",
  73. "react-markdown": "^7.1.0",
  74. "umi": "3.5.4",
  75. "vditor": "^3.8.7",
  76. "virtuallist-antd": "^0.7.2"
  77. },
  78. "devDependencies": {
  79. "@ant-design/pro-cli": "^1.0.18",
  80. "@babel/plugin-proposal-class-properties": "^7.16.7",
  81. "@babel/plugin-proposal-decorators": "^7.17.2",
  82. "@babel/plugin-proposal-optional-chaining": "^7.13.12",
  83. "@babel/preset-env": "^7.16.11",
  84. "@babel/preset-react": "^7.16.7",
  85. "@types/classnames": "^2.2.7",
  86. "@types/express": "^4.17.0",
  87. "@types/history": "^4.7.2",
  88. "@types/jest": "^26.0.0",
  89. "@types/lodash": "^4.14.144",
  90. "@types/qs": "^6.5.3",
  91. "@types/react": "^16.9.17",
  92. "@types/react-dom": "^16.8.4",
  93. "@types/react-helmet": "^6.1.0",
  94. "@umijs/fabric": "^2.10.1",
  95. "@umijs/plugin-blocks": "^2.0.5",
  96. "@umijs/plugin-esbuild": "^1.0.1",
  97. "@umijs/preset-ant-design-pro": "^1.2.0",
  98. "@umijs/preset-react": "1.8.12",
  99. "@umijs/yorkie": "^2.0.3",
  100. "antd-dayjs-webpack-plugin": "^1.0.6",
  101. "babel-plugin-import": "^1.13.3",
  102. "carlo": "^0.9.46",
  103. "compression-webpack-plugin": "4.0.1",
  104. "cross-env": "^7.0.0",
  105. "cross-port-killer": "^1.1.1",
  106. "detect-installer": "^1.0.1",
  107. "eslint": "^7.18.0",
  108. "eslint-plugin-javascript": "^1.3.4",
  109. "eslint-plugin-jsx": "^0.1.0",
  110. "eslint-plugin-prettier": "^4.0.0",
  111. "eslint-plugin-typescript": "^0.14.0",
  112. "express": "^4.17.1",
  113. "gh-pages": "^3.0.0",
  114. "lint-staged": "^10.0.0",
  115. "prettier": "^2.2.1",
  116. "puppeteer-core": "^5.0.0",
  117. "stylelint": "^13.9.0",
  118. "typescript": "^4.0.3",
  119. "webpack": "^5.40.0",
  120. "windicss": "3.1.7",
  121. "windicss-webpack-plugin": "1.4.5"
  122. },
  123. "engines": {
  124. "node": ">=10.0.0"
  125. }
  126. }