package.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. "buildTest": "UMI_ENV=buildTest umi build",
  10. "deploy": "npm run site && npm run gh-pages",
  11. "fetch:blocks": "pro fetch-blocks && npm run prettier",
  12. "format-imports": "cross-env 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 --port 8088",
  24. "start:no-mock": "cross-env MOCK=none umi dev",
  25. "start:no-ui": "cross-env UMI_UI=none umi dev",
  26. "test": "umi test",
  27. "test:all": "node ./tests/run-tests.js",
  28. "test:component": "umi test ./src/components",
  29. "tsc": "tsc",
  30. "ui": "umi ui"
  31. },
  32. "husky": {
  33. "hooks": {}
  34. },
  35. "lint-staged": {
  36. "**/*.less": "stylelint --syntax less",
  37. "**/*.{js,jsx,tsx,ts,less,md,json}": [
  38. "prettier --write",
  39. "git add"
  40. ],
  41. "**/*.{js,jsx}": "npm run lint-staged:js",
  42. "**/*.{js,ts,tsx}": "npm run lint-staged:js"
  43. },
  44. "browserslist": [
  45. "> 1%",
  46. "last 2 versions",
  47. "not ie <= 10"
  48. ],
  49. "dependencies": {
  50. "@ant-design/pro-layout": "^4.10.0",
  51. "@ant-design/pro-table": "^1.0.22",
  52. "@antv/data-set": "^0.10.2",
  53. "antd": "^3.26.5",
  54. "classnames": "^2.2.6",
  55. "decimal.js": "^10.2.0",
  56. "dva": "^2.6.0-beta.16",
  57. "js-base64": "^2.5.2",
  58. "lodash": "^4.17.11",
  59. "moment": "^2.24.0",
  60. "omit.js": "^1.0.2",
  61. "path-to-regexp": "2.4.0",
  62. "qs": "^6.9.0",
  63. "react": "^16.12.0",
  64. "react-dom": "^16.8.6",
  65. "react-helmet": "^5.2.1",
  66. "react-player": "^2.0.0",
  67. "react-zmage": "^0.8.5",
  68. "redux": "^4.0.1",
  69. "umi": "^2.8.7",
  70. "umi-plugin-antd-theme": "^1.0.1",
  71. "umi-plugin-pro-block": "^1.3.2",
  72. "umi-plugin-react": "^1.9.5",
  73. "umi-request": "^1.0.8"
  74. },
  75. "devDependencies": {
  76. "@ant-design/pro-cli": "^1.0.14",
  77. "@types/classnames": "^2.2.7",
  78. "@types/express": "^4.17.0",
  79. "@types/history": "^4.7.2",
  80. "@types/jest": "^24.0.23",
  81. "@types/lodash": "^4.14.144",
  82. "@types/qs": "^6.5.3",
  83. "@types/react": "^16.8.19",
  84. "@types/react-dom": "^16.8.4",
  85. "@types/react-helmet": "^5.0.13",
  86. "@umijs/fabric": "^2.0.0-beta.3",
  87. "bodymovin": "^4.13.0",
  88. "browser-md5-file": "^1.1.1",
  89. "chalk": "^3.0.0",
  90. "check-prettier": "^1.0.3",
  91. "cross-env": "^6.0.0",
  92. "cross-port-killer": "^1.1.1",
  93. "enzyme": "^3.9.0",
  94. "express": "^4.17.1",
  95. "gh-pages": "^2.0.1",
  96. "husky": "^3.0.0",
  97. "import-sort-cli": "^6.0.0",
  98. "import-sort-parser-babylon": "^6.0.0",
  99. "import-sort-parser-typescript": "^6.0.0",
  100. "import-sort-style-module": "^6.0.0",
  101. "jest-puppeteer": "^4.2.0",
  102. "jsdom-global": "^3.0.2",
  103. "lint-staged": "^9.0.0",
  104. "lottie-web": "^5.5.10",
  105. "mockjs": "^1.0.1-beta3",
  106. "node-fetch": "^2.6.0",
  107. "prettier": "^1.19.1",
  108. "pro-download": "1.0.1",
  109. "qiniu-js": "^2.5.5",
  110. "react-zmage": "^0.8.5",
  111. "roadhog-api-doc": "^1.1.2",
  112. "stylelint": "^12.0.0",
  113. "umi-plugin-ga": "^1.1.3",
  114. "umi-plugin-pro": "^1.0.2",
  115. "umi-types": "^0.5.0"
  116. },
  117. "optionalDependencies": {},
  118. "engines": {
  119. "node": ">=10.0.0"
  120. },
  121. "checkFiles": [
  122. "src/**/*.js*",
  123. "src/**/*.ts*",
  124. "src/**/*.less",
  125. "config/**/*.js*",
  126. "scripts/**/*.js"
  127. ]
  128. }