package.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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": "^2.10.10",
  59. "antd": "^4.16.13",
  60. "classnames": "^2.2.6",
  61. "decimal.js": "^10.2.0",
  62. "dva": "^2.6.0-beta.16",
  63. "echarts": "^4.6.0",
  64. "js-base64": "^2.5.2",
  65. "jszip": "^3.6.0",
  66. "jszip-utils": "^0.1.0",
  67. "lodash": "^4.17.11",
  68. "lottie-web": "^5.7.3",
  69. "moment": "^2.24.0",
  70. "mux.js": "^5.5.1",
  71. "numeral": "^2.0.6",
  72. "omit.js": "^1.0.2",
  73. "path-to-regexp": "2.4.0",
  74. "qs": "^6.9.0",
  75. "react": "^16.8.6",
  76. "react-color": "^2.18.1",
  77. "react-copy-to-clipboard": "^5.0.1",
  78. "react-dom": "^16.8.6",
  79. "react-helmet": "^5.2.1",
  80. "react-player": "^1.15.2",
  81. "react-zmage": "^0.8.5",
  82. "reactcss": "^1.2.3",
  83. "svgaplayerweb": "^2.3.0",
  84. "umi": "^3.5.20",
  85. "umi-request": "^1.4.0"
  86. },
  87. "devDependencies": {
  88. "@ant-design/icons": "^4.6.4",
  89. "@ant-design/pro-cli": "^1.0.14",
  90. "@types/classnames": "^2.2.7",
  91. "@types/express": "^4.17.0",
  92. "@types/history": "^4.7.2",
  93. "@types/jest": "^24.0.23",
  94. "@types/lodash": "^4.14.144",
  95. "@types/qs": "^6.5.3",
  96. "@types/react": "^16.8.19",
  97. "@types/react-dom": "^16.8.4",
  98. "@types/react-helmet": "^5.0.13",
  99. "@umijs/fabric": "^2.0.0-beta.3",
  100. "@umijs/preset-react": "^1.8.17",
  101. "browser-md5-file": "^1.1.1",
  102. "check-prettier": "^1.0.3",
  103. "cross-env": "^6.0.0",
  104. "cross-port-killer": "^1.1.1",
  105. "enzyme": "^3.9.0",
  106. "eslint-plugin-react-hooks": "^2.3.0",
  107. "express": "^4.17.1",
  108. "gh-pages": "^2.0.1",
  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": "^2.3.2",
  119. "qiniu-js": "^2.5.5",
  120. "react-zmage": "^0.8.5",
  121. "stylelint": "^12.0.0",
  122. "svgaplayerweb": "^2.3.0",
  123. "uid": "^2.0.0"
  124. },
  125. "optionalDependencies": {},
  126. "engines": {
  127. "node": ">=10.0.0"
  128. },
  129. "checkFiles": [
  130. "src/**/*.js*",
  131. "src/**/*.ts*",
  132. "src/**/*.less",
  133. "config/**/*.js*",
  134. "scripts/**/*.js"
  135. ]
  136. }