package.json 4.2 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 site && npm run gh-pages",
  10. "fetch:blocks": "pro fetch-blocks && npm run prettier",
  11. "format-imports": "cross-env import-sort --write '**/*.{js,jsx,ts,tsx}'",
  12. "gh-pages": "cp CNAME ./dist/ && gh-pages -d dist",
  13. "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
  14. "lint": "npm run lint:js && npm run lint:style && npm run lint:prettier",
  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": "npm run prettier&&check-prettier lint",
  20. "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
  21. "prettier": "prettier -c --write \"**/*\"",
  22. "start": "umi dev HOST=0.0.0.0",
  23. "start:no-mock": "cross-env MOCK=none umi dev",
  24. "start:no-ui": "cross-env UMI_UI=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. "husky": {
  31. "hooks": {
  32. "pre-commit": "npm run lint-staged"
  33. }
  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/colors": "^3.1.0",
  51. "@ant-design/pro-layout": "^4.5.16",
  52. "@antv/data-set": "^0.10.2",
  53. "@types/lodash.debounce": "^4.0.6",
  54. "@types/lodash.isequal": "^4.5.5",
  55. "@types/react-router": "^5.0.2",
  56. "antd": "^3.23.6",
  57. "bizcharts": "^3.5.3-beta.0",
  58. "bizcharts-plugin-slider": "^2.1.1-beta.1",
  59. "classnames": "^2.2.6",
  60. "dva": "^2.4.1",
  61. "gg-editor": "^2.0.2",
  62. "lodash": "^4.17.11",
  63. "lodash-decorators": "^6.0.0",
  64. "lodash.debounce": "^4.0.8",
  65. "lodash.isequal": "^4.5.0",
  66. "mockjs": "^1.0.1-beta3",
  67. "moment": "^2.24.0",
  68. "numeral": "^2.0.6",
  69. "nzh": "^1.0.3",
  70. "omit.js": "^1.0.2",
  71. "path-to-regexp": "2.4.0",
  72. "prop-types": "^15.5.10",
  73. "qs": "^6.9.0",
  74. "react": "^16.8.6",
  75. "react-copy-to-clipboard": "^5.0.1",
  76. "react-dom": "^16.8.6",
  77. "react-fittext": "^1.0.0",
  78. "react-helmet": "^5.2.1",
  79. "react-router": "^4.3.1",
  80. "redux": "^4.0.1",
  81. "slash2": "^2.0.0",
  82. "umi": "^2.9.6",
  83. "umi-plugin-pro-block": "^1.3.4",
  84. "umi-plugin-react": "^1.10.1",
  85. "umi-request": "^1.2.7",
  86. "webpack-theme-color-replacer": "^1.2.15"
  87. },
  88. "devDependencies": {
  89. "@ant-design/pro-cli": "^1.0.13",
  90. "@types/classnames": "^2.2.7",
  91. "@types/express": "^4.17.0",
  92. "@types/history": "^4.7.2",
  93. "@types/jest": "^24.0.13",
  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": "^1.2.1",
  100. "chalk": "^3.0.0",
  101. "check-prettier": "^1.0.3",
  102. "cross-env": "^6.0.0",
  103. "cross-port-killer": "^1.1.1",
  104. "enzyme": "^3.9.0",
  105. "eslint": "^5.16.0",
  106. "express": "^4.17.1",
  107. "gh-pages": "^2.0.1",
  108. "husky": "^3.0.0",
  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. "lint-staged": "^9.0.0",
  115. "mockjs": "^1.0.1-beta3",
  116. "node-fetch": "^2.6.0",
  117. "prettier": "^1.17.1",
  118. "pro-download": "1.0.1",
  119. "stylelint": "^12.0.0",
  120. "umi-plugin-ga": "^1.1.3",
  121. "umi-plugin-pro": "^1.0.2",
  122. "umi-types": "^0.5.0"
  123. },
  124. "optionalDependencies": {
  125. "puppeteer": "^1.17.0"
  126. },
  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. }