package.json 4.4 KB

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