package.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. {
  2. "name": "ant-design-pro",
  3. "version": "1.0.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. "fetch:blocks": "pro fetch-blocks && npm run prettier",
  11. "format-imports": "cross-env import-sort --write '**/*.{js,jsx,ts,tsx}'",
  12. "gh-pages": "cp CNAME ./dist/ && gh-pages -d dist",
  13. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  14. "lint": "npm run lint:js && npm run lint:style && npm run lint:prettier",
  15. "lint-staged": "lint-staged",
  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": "check-prettier lint",
  20. "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  21. "prettier": "prettier -c --write \"**/*\"",
  22. "start": "umi dev",
  23. "start:no-mock": "cross-env MOCK=none umi dev",
  24. "start:no-ui": "cross-env UMI_UI=none umi dev",
  25. "test": "umi test",
  26. "test:all": "node ./tests/run-tests.js",
  27. "test:component": "umi test ./src/components",
  28. "tsc": "tsc",
  29. "ui": "umi ui"
  30. },
  31. "husky": {
  32. "hooks": {}
  33. },
  34. "lint-staged": {
  35. "**/*.less": "stylelint --syntax less",
  36. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  37. "prettier --write",
  38. "git add"
  39. ],
  40. "**/*.{js,jsx}": "npm run lint-staged:js",
  41. "**/*.{js,ts,tsx}": "npm run lint-staged:js"
  42. },
  43. "browserslist": [
  44. "> 1%",
  45. "last 2 versions",
  46. "not ie <= 10"
  47. ],
  48. "dependencies": {
  49. "@ant-design/compatible": "^1.0.8",
  50. "@ant-design/pro-form": "^1.43.2",
  51. "@ant-design/pro-layout": "^6.26.0",
  52. "@ant-design/pro-table": "^2.54.3",
  53. "@antv/data-set": "^0.10.2",
  54. "ahooks": "^2.10.9",
  55. "antd": "^4.16.3",
  56. "classnames": "^2.2.6",
  57. "decimal.js": "^10.2.0",
  58. "dva": "^2.6.0-beta.16",
  59. "echarts": "^4.6.0",
  60. "js-base64": "^2.5.2",
  61. "jszip": "^3.6.0",
  62. "jszip-utils": "^0.1.0",
  63. "lodash": "^4.17.11",
  64. "lottie-web": "^5.7.3",
  65. "moment": "^2.24.0",
  66. "mux.js": "^5.5.1",
  67. "numeral": "^2.0.6",
  68. "omit.js": "^1.0.2",
  69. "path-to-regexp": "2.4.0",
  70. "qs": "^6.9.0",
  71. "react": "^16.8.6",
  72. "react-color": "^2.18.1",
  73. "react-copy-to-clipboard": "^5.0.1",
  74. "react-dom": "^16.8.6",
  75. "react-helmet": "^5.2.1",
  76. "react-player": "^1.15.2",
  77. "react-zmage": "^0.8.5",
  78. "reactcss": "^1.2.3",
  79. "redux": "^4.0.1",
  80. "svgaplayerweb": "^2.3.0",
  81. "umi": "^3.5.20",
  82. "umi-request": "^1.0.8"
  83. },
  84. "devDependencies": {
  85. "@ant-design/icons": "^4.6.4",
  86. "@ant-design/pro-cli": "^1.0.14",
  87. "@types/classnames": "^2.2.7",
  88. "@types/express": "^4.17.0",
  89. "@types/history": "^4.7.2",
  90. "@types/jest": "^24.0.23",
  91. "@types/lodash": "^4.14.144",
  92. "@types/qs": "^6.5.3",
  93. "@types/react": "^16.8.19",
  94. "@types/react-dom": "^16.8.4",
  95. "@types/react-helmet": "^5.0.13",
  96. "@umijs/fabric": "^2.0.0-beta.3",
  97. "@umijs/preset-react": "^1.8.17",
  98. "bodymovin": "^4.13.0",
  99. "browser-md5-file": "^1.1.1",
  100. "chalk": "^3.0.0",
  101. "check-prettier": "^1.0.3",
  102. "cross-env": "^6.0.0",
  103. "cross-port-killer": "^1.1.1",
  104. "enzyme": "^3.9.0",
  105. "eslint-plugin-react-hooks": "^2.3.0",
  106. "express": "^4.17.1",
  107. "gh-pages": "^2.0.1",
  108. "husky": "^3.0.0",
  109. "import-sort-cli": "^6.0.0",
  110. "import-sort-parser-babylon": "^6.0.0",
  111. "import-sort-parser-typescript": "^6.0.0",
  112. "import-sort-style-module": "^6.0.0",
  113. "jest-puppeteer": "^4.2.0",
  114. "jsdom-global": "^3.0.2",
  115. "lint-staged": "^9.0.0",
  116. "mockjs": "^1.0.1-beta3",
  117. "node-fetch": "^2.6.0",
  118. "prettier": "^1.19.1",
  119. "pro-download": "1.0.1",
  120. "qiniu-js": "^2.5.5",
  121. "react-zmage": "^0.8.5",
  122. "roadhog-api-doc": "^1.1.2",
  123. "stylelint": "^12.0.0",
  124. "svgaplayerweb": "^2.3.0",
  125. "uid": "^2.0.0",
  126. "umi-types": "^0.5.13"
  127. },
  128. "optionalDependencies": {},
  129. "engines": {
  130. "node": ">=10.0.0"
  131. },
  132. "checkFiles": [
  133. "src/**/*.js*",
  134. "src/**/*.ts*",
  135. "src/**/*.less",
  136. "config/**/*.js*",
  137. "scripts/**/*.js"
  138. ]
  139. }