123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. {
  2. "name": "ant-design-pro",
  3. "version": "4.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. "gh-pages": "cp CNAME ./dist/ && gh-pages -d dist",
  12. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  13. "lint": "npm run lint:js && npm run lint:style && npm run lint:prettier",
  14. "lint:prettier": "prettier --check \"**/*\" --end-of-line auto",
  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:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  20. "prettier": "prettier -c --write \"**/*\"",
  21. "start": "umi dev",
  22. "dev": "npm run start:dev",
  23. "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none umi dev",
  24. "start:no-mock": "cross-env MOCK=none umi dev",
  25. "start:no-ui": "cross-env UMI_UI=none umi dev",
  26. "start:pre": "cross-env REACT_APP_ENV=pre MOCK=none umi dev",
  27. "start:test": "cross-env REACT_APP_ENV=test MOCK=none umi dev",
  28. "test": "umi test",
  29. "test:all": "node ./tests/run-tests.js",
  30. "test:component": "umi test ./src/components",
  31. "tsc": "tsc",
  32. "ui": "umi ui"
  33. },
  34. "lint-staged": {
  35. "**/*.less": "stylelint --syntax less",
  36. "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
  37. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  38. "prettier --write"
  39. ]
  40. },
  41. "browserslist": [
  42. "> 1%",
  43. "last 2 versions",
  44. "not ie <= 10"
  45. ],
  46. "dependencies": {
  47. "@amap/amap-jsapi-loader": "^1.0.1",
  48. "@ant-design/pro-layout": "^4.10.13",
  49. "@antv/data-set": "^0.11.0",
  50. "@zjxpcyc/xrc-form2": "2.2.2",
  51. "antd": "^3.23.6",
  52. "classnames": "^2.2.6",
  53. "dva": "^2.6.0-beta.16",
  54. "echarts": "^4.3.0",
  55. "lodash": "^4.17.11",
  56. "md5": "^2.3.0",
  57. "moment": "^2.24.0",
  58. "omit.js": "^1.0.2",
  59. "package.json": "^2.0.1",
  60. "path-to-regexp": "2.4.0",
  61. "pinyin": "^2.10.2",
  62. "qs": "^6.9.0",
  63. "react": "^16.8.6",
  64. "react-copy-to-clipboard": "^5.0.1",
  65. "react-dom": "^16.8.6",
  66. "react-helmet": "^5.2.1",
  67. "react-transition-group": "^4.4.2",
  68. "react-zmage": "^0.8.5-beta.37",
  69. "redux": "^4.0.1",
  70. "umi": "^2.13.0",
  71. "umi-plugin-antd-theme": "^1.0.1",
  72. "umi-plugin-pro-block": "^1.3.2",
  73. "umi-plugin-react": "^1.9.5",
  74. "umi-request": "^1.0.8",
  75. "wangeditor": "^4.7.1"
  76. },
  77. "devDependencies": {
  78. "@ant-design/pro-cli": "^1.0.18",
  79. "@types/classnames": "^2.2.7",
  80. "@types/express": "^4.17.0",
  81. "@types/history": "^4.7.2",
  82. "@types/jest": "^25.1.0",
  83. "@types/lodash": "^4.14.144",
  84. "@types/qs": "^6.5.3",
  85. "@types/react": "^16.8.19",
  86. "@types/react-dom": "^16.8.4",
  87. "@types/react-helmet": "^5.0.13",
  88. "@umijs/fabric": "^2.0.2",
  89. "chalk": "^3.0.0",
  90. "cross-env": "^7.0.0",
  91. "cross-port-killer": "^1.1.1",
  92. "enzyme": "^3.9.0",
  93. "express": "^4.17.1",
  94. "gh-pages": "^2.0.1",
  95. "husky": "^4.0.7",
  96. "jest-puppeteer": "^4.2.0",
  97. "jsdom-global": "^3.0.2",
  98. "lint-staged": "^10.0.0",
  99. "mockjs": "^1.0.1-beta3",
  100. "node-fetch": "^2.6.0",
  101. "prettier": "^1.19.1",
  102. "pro-download": "1.0.1",
  103. "stylelint": "^13.0.0",
  104. "umi-plugin-antd-icon-config": "^1.0.2",
  105. "umi-plugin-ga": "^1.1.3",
  106. "umi-plugin-pro": "^1.0.2",
  107. "umi-types": "^0.5.0"
  108. },
  109. "optionalDependencies": {
  110. "puppeteer": "^2.0.0"
  111. },
  112. "engines": {
  113. "node": ">=10.0.0"
  114. },
  115. "checkFiles": [
  116. "src/**/*.js*",
  117. "src/**/*.ts*",
  118. "src/**/*.less",
  119. "config/**/*.js*",
  120. "scripts/**/*.js"
  121. ]
  122. }