package.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. {
  2. "name": "ant-design-pro",
  3. "version": "5.0.0-alpha.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. "build:prod": "cross-env UMI_ENV=prod REACT_APP_ENV=pro umi build",
  10. "build:dev": "cross-env UMI_ENV=prod REACT_APP_ENV=dev umi build",
  11. "build:prod-no": "cross-env UMI_ENV=prod COMPRESS=none umi build",
  12. "deploy": "npm run site && npm run gh-pages",
  13. "dev": "npm run start:dev",
  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": "lint-staged",
  19. "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
  20. "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
  21. "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
  22. "lint:prettier": "prettier --check \"**/*\" --end-of-line auto",
  23. "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  24. "prettier": "prettier -c --write \"**/*\"",
  25. "start": "umi dev",
  26. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none umi dev",
  27. "start:no-mock": "cross-env MOCK=none umi dev",
  28. "start:no-ui": "cross-env UMI_UI=none umi dev",
  29. "start:no": "cross-env UMI_UI=none MOCK=none umi dev",
  30. "start:no-p": "cross-env UMI_UI=none MOCK=none REACT_APP_ENV=pro umi dev pro",
  31. "start:pre": "cross-env REACT_APP_ENV=pre umi dev",
  32. "start:test": "cross-env REACT_APP_ENV=test UMI_UI=none MOCK=none umi dev",
  33. "pretest": "node ./tests/beforeTest",
  34. "test": "umi test",
  35. "test:all": "node ./tests/run-tests.js",
  36. "test:component": "umi test ./src/components",
  37. "tsc": "tsc"
  38. },
  39. "lint-staged": {
  40. "**/*.less": "stylelint --syntax less",
  41. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  42. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  43. "prettier --write"
  44. ]
  45. },
  46. "browserslist": [
  47. "> 1%",
  48. "last 2 versions",
  49. "not ie <= 10"
  50. ],
  51. "dependencies": {
  52. "@ant-design/icons": "^4.0.0",
  53. "@ant-design/pro-layout": "^6.2.5",
  54. "@ant-design/pro-table": "^2.4.0",
  55. "@antv/data-set": "^0.11.5",
  56. "@tinymce/tinymce-react": "^4.1.0",
  57. "@turf/turf": "^5.1.6",
  58. "@types/react-color": "^3.0.4",
  59. "@types/react-cropper": "^1.3.0",
  60. "@types/react-resizable": "^1.7.4",
  61. "@types/react-window": "^1.8.2",
  62. "@types/sortablejs": "^1.10.6",
  63. "@types/spark-md5": "^3.0.2",
  64. "ahooks": "^2.9.1",
  65. "antd": "4.24.12",
  66. "antd-img-crop": "^3.13.2",
  67. "array-move": "^3.0.1",
  68. "classnames": "^2.2.6",
  69. "echarts": "^5.3.1",
  70. "file-loader": "^6.2.0",
  71. "image-conversion": "^2.1.1",
  72. "jsmpeg-player": "^3.0.3",
  73. "lodash": "^4.17.21",
  74. "moment": "^2.25.3",
  75. "omit.js": "^2.0.2",
  76. "path-to-regexp": "2.4.0",
  77. "qrcodejs2": "^0.0.2",
  78. "qs": "^6.9.0",
  79. "react": "^16.8.6",
  80. "react-base-table": "^1.13.4",
  81. "react-color": "^2.19.3",
  82. "react-cropper": "^2.1.7",
  83. "react-dom": "^16.8.6",
  84. "react-helmet-async": "^1.0.4",
  85. "react-image-crop": "^8.6.9",
  86. "react-resizable": "^3.0.4",
  87. "react-responsive-carousel": "^3.2.18",
  88. "react-sortable-hoc": "^2.0.0",
  89. "react-window": "^1.8.9",
  90. "regenerator-runtime": "^0.13.7",
  91. "sanitize-html": "^2.3.0",
  92. "sortablejs": "^1.13.0",
  93. "spark-md5": "^3.0.1",
  94. "umi": "^3.2.0",
  95. "umi-request": "^1.0.8",
  96. "url-loader": "^4.1.1",
  97. "use-merge-value": "^1.0.1"
  98. },
  99. "devDependencies": {
  100. "@ant-design/pro-cli": "^2.0.2",
  101. "@types/classnames": "^2.2.7",
  102. "@types/express": "^4.17.0",
  103. "@types/history": "^4.7.2",
  104. "@types/jest": "^26.0.0",
  105. "@types/lodash": "^4.14.144",
  106. "@types/qs": "^6.5.3",
  107. "@types/react": "^16.9.17",
  108. "@types/react-dom": "^16.8.4",
  109. "@types/react-helmet": "^5.0.13",
  110. "@umijs/fabric": "^2.2.0",
  111. "@umijs/plugin-blocks": "^2.0.5",
  112. "@umijs/plugin-esbuild": "^1.3.1",
  113. "@umijs/preset-ant-design-pro": "^1.2.0",
  114. "@umijs/preset-react": "^1.4.8",
  115. "@umijs/preset-ui": "^2.0.9",
  116. "@umijs/yorkie": "^2.0.3",
  117. "babel-plugin-transform-remove-console": "^6.9.4",
  118. "carlo": "^0.9.46",
  119. "cross-env": "^7.0.0",
  120. "cross-port-killer": "^1.1.1",
  121. "detect-installer": "^1.0.1",
  122. "enzyme": "^3.11.0",
  123. "eslint": "^7.1.0",
  124. "express": "^4.17.1",
  125. "gh-pages": "^3.0.0",
  126. "husky": "^4.0.7",
  127. "jsdom-global": "^3.0.2",
  128. "lint-staged": "^10.0.0",
  129. "mockjs": "^1.0.1-beta3",
  130. "prettier": "^2.0.1",
  131. "pro-download": "1.0.1",
  132. "puppeteer-core": "^5.0.0",
  133. "stylelint": "^13.0.0"
  134. },
  135. "engines": {
  136. "node": ">=10.0.0"
  137. }
  138. }