package.json 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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:prod": "cross-env PROD_ENV=1 umi build",
  9. "build": "cross-env PROD_ENV=2 umi build",
  10. "deploy": "cross-env ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION=site npm run site && npm run gh-pages",
  11. "fetch:blocks": "pro fetch-blocks",
  12. "format-imports": "import-sort --write '**/*.{js,jsx,ts,tsx}'",
  13. "gh-pages": "cp CNAME ./dist/ && gh-pages -d dist",
  14. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  15. "lint": "npm run lint:js && npm run lint:style && npm run lint:prettier",
  16. "lint-staged": "lint-staged",
  17. "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
  18. "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
  19. "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
  20. "lint:prettier": "check-prettier lint",
  21. "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  22. "prettier": "prettier -c --write \"**/*\"",
  23. "start": "umi dev",
  24. "start:no-mock": "cross-env MOCK=none umi dev",
  25. "test": "umi test",
  26. "test:all": "node ./tests/run-tests.js",
  27. "test:component": "umi test ./src/components",
  28. "ui": "umi ui"
  29. },
  30. "lint-staged": {
  31. "**/*.less": "stylelint --syntax less",
  32. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  33. "prettier --write",
  34. "git add"
  35. ],
  36. "**/*.{js,jsx}": "npm run lint-staged:js",
  37. "**/*.{js,ts,tsx}": "npm run lint-staged:js"
  38. },
  39. "browserslist": [
  40. "> 1%",
  41. "last 2 versions",
  42. "not ie <= 10"
  43. ],
  44. "dependencies": {
  45. "@ant-design/pro-layout": "^4.5.9",
  46. "@antv/data-set": "^0.10.2",
  47. "@zjxpcyc/xrc-form2": "^2.2.2",
  48. "ant": "^0.2.0",
  49. "antd": "^3.26.0",
  50. "classnames": "^2.2.6",
  51. "dayjs": "^1.8.16",
  52. "dva": "^2.4.1",
  53. "echarts": "^4.3.0",
  54. "lodash": "^4.17.11",
  55. "md5": "^2.2.1",
  56. "moment": "^2.24.0",
  57. "omit.js": "^1.0.2",
  58. "path-to-regexp": "^3.0.0",
  59. "qrcode.react": "^1.0.0",
  60. "qs": "^6.7.0",
  61. "react": "^16.8.6",
  62. "react-amap": "^1.2.8",
  63. "react-amap-plugin-autocomplete": "0.0.4",
  64. "react-copy-to-clipboard": "^5.0.1",
  65. "react-document-title": "^2.0.3",
  66. "react-dom": "^16.8.6",
  67. "react-slick": "^0.25.2",
  68. "react-zmage": "^0.8.5",
  69. "redux": "^4.0.1",
  70. "swiper": "^5.3.6",
  71. "umi": "^2.13.16",
  72. "umi-plugin-pro-block": "^1.3.6",
  73. "umi-plugin-react": "^1.15.8",
  74. "umi-request": "^1.0.8",
  75. "wangeditor": "4.6.4"
  76. },
  77. "devDependencies": {
  78. "@ant-design/colors": "^3.1.0",
  79. "@ant-design/pro-cli": "^1.0.0",
  80. "@types/classnames": "^2.2.7",
  81. "@types/echarts": "^4.1.14",
  82. "@types/express": "^4.17.0",
  83. "@types/history": "^4.7.2",
  84. "@types/jest": "^24.0.13",
  85. "@types/lodash": "^4.14.133",
  86. "@types/qrcode.react": "^0.9.0",
  87. "@types/qs": "^6.5.3",
  88. "@types/react": "^16.8.19",
  89. "@types/react-document-title": "^2.0.3",
  90. "@types/react-dom": "^16.8.4",
  91. "@umijs/fabric": "^1.1.0",
  92. "chalk": "^2.4.2",
  93. "check-prettier": "^1.0.3",
  94. "cross-env": "^5.2.0",
  95. "cross-port-killer": "^1.1.1",
  96. "enzyme": "^3.9.0",
  97. "eslint": "^5.16.0",
  98. "express": "^4.17.1",
  99. "gh-pages": "^2.0.1",
  100. "husky": "^3.0.0",
  101. "import-sort-cli": "^6.0.0",
  102. "import-sort-parser-babylon": "^6.0.0",
  103. "import-sort-parser-typescript": "^6.0.0",
  104. "import-sort-style-module": "^6.0.0",
  105. "jest-puppeteer": "^4.2.0",
  106. "lint-staged": "^9.0.0",
  107. "mockjs": "^1.0.1-beta3",
  108. "node-fetch": "^2.6.0",
  109. "prettier": "^1.17.1",
  110. "pro-download": "1.0.1",
  111. "slash2": "^2.0.0",
  112. "stylelint": "^10.1.0",
  113. "umi-plugin-ga": "^1.1.6",
  114. "umi-plugin-pro": "^1.0.3",
  115. "umi-types": "^0.3.8",
  116. "webpack-theme-color-replacer": "^1.3.12"
  117. },
  118. "optionalDependencies": {
  119. "puppeteer": "^1.17.0"
  120. },
  121. "engines": {
  122. "node": ">=10.0.0"
  123. },
  124. "checkFiles": [
  125. "src/**/*.js*",
  126. "src/**/*.ts*",
  127. "src/**/*.less",
  128. "config/**/*.js*",
  129. "scripts/**/*.js"
  130. ]
  131. }