package.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. "lint": "npm run lint:js && npm run lint:ts && npm run lint:style && npm run lint:prettier",
  10. "lint-staged": "lint-staged",
  11. "lint-staged:js": "eslint --ext .js",
  12. "lint-staged:ts": "tslint",
  13. "lint:fix": "eslint --fix --ext .js src tests && npm run lint:style && npm run tslint:fix",
  14. "lint:js": "eslint --ext .js src tests",
  15. "lint:prettier": "check-prettier lint",
  16. "lint:style": "stylelint --fix 'src/**/*.less' --syntax less",
  17. "lint:ts": "tslint -p . -c tslint.yml",
  18. "prettier": " check-prettier write",
  19. "start": "umi dev",
  20. "start:no-mock": "cross-env MOCK=none umi dev",
  21. "test": "umi test",
  22. "test:all": "node ./tests/run-tests.js",
  23. "test:component": "umi test ./src/components",
  24. "tslint:fix": "tslint --fix 'src/**/*.ts*'",
  25. "fetch:blocks": "node ./scripts/fetch-blocks.js"
  26. },
  27. "husky": {
  28. "hooks": {
  29. "pre-commit": "npm run lint-staged"
  30. }
  31. },
  32. "lint-staged": {
  33. "**/*.less": "stylelint --syntax less",
  34. "**/*.{js,jsx}": "npm run lint-staged:js",
  35. "**/*.{js,ts,tsx,md,json,jsx,less}": [ "npm run prettier", "git add" ],
  36. "**/*.{ts,tsx}": "npm run lint-staged:ts"
  37. },
  38. "browserslist": [ "> 1%", "last 2 versions", "not ie <= 10" ],
  39. "dependencies": {
  40. "@ant-design/pro-layout": "^4.2.0",
  41. "@antv/data-set": "^0.10.1",
  42. "antd": "^3.16.1",
  43. "bizcharts": "^3.5.3-beta.0",
  44. "bizcharts-plugin-slider": "^2.1.1-beta.1",
  45. "classnames": "^2.2.6",
  46. "dva": "^2.4.0",
  47. "lodash": "^4.17.10",
  48. "lodash-decorators": "^6.0.0",
  49. "memoize-one": "^5.0.0",
  50. "moment": "^2.22.2",
  51. "numeral": "^2.0.6",
  52. "omit.js": "^1.0.0",
  53. "path-to-regexp": "^2.4.0",
  54. "qs": "^6.7.0",
  55. "rc-animate": "^2.4.4",
  56. "react": "^16.8.5",
  57. "react-container-query": "^0.11.0",
  58. "react-copy-to-clipboard": "^5.0.1",
  59. "react-document-title": "^2.0.3",
  60. "react-dom": "^16.7.0",
  61. "react-fittext": "^1.0.0",
  62. "react-media": "^1.9.2",
  63. "react-media-hook2": "^1.0.2"
  64. },
  65. "devDependencies": {
  66. "@types/classnames": "^2.2.7",
  67. "@types/history": "^4.7.2",
  68. "@types/lodash": "^4.14.123",
  69. "@types/react": "^16.8.1",
  70. "@types/react-document-title": "^2.0.3",
  71. "@types/react-dom": "^16.0.11",
  72. "antd-pro-merge-less": "^1.0.0",
  73. "antd-theme-webpack-plugin": "^1.2.0",
  74. "babel-eslint": "^10.0.1",
  75. "chalk": "^2.4.2",
  76. "check-prettier": "^1.0.1",
  77. "cross-env": "^5.2.0",
  78. "cross-port-killer": "^1.0.1",
  79. "enzyme": "^3.9.0",
  80. "eslint": "^5.13.0",
  81. "eslint-config-airbnb": "^17.1.0",
  82. "eslint-config-prettier": "^4.1.0",
  83. "eslint-plugin-babel": "^5.3.0",
  84. "eslint-plugin-compat": "^2.6.3",
  85. "eslint-plugin-import": "^2.16.0",
  86. "eslint-plugin-jsx-a11y": "^6.2.1",
  87. "eslint-plugin-markdown": "^1.0.0",
  88. "eslint-plugin-react": "^7.12.4",
  89. "express": "^4.16.4",
  90. "gh-pages": "^2.0.1",
  91. "husky": "^2.2.0",
  92. "jest-puppeteer": "^4.1.0",
  93. "jsdom-global": "^3.0.2",
  94. "less": "^3.9.0",
  95. "lint-staged": "^8.1.1",
  96. "merge-umi-mock-data": "^1.0.4",
  97. "mockjs": "^1.0.1-beta3",
  98. "prettier": "^1.17.0",
  99. "serverless-http": "^2.0.1",
  100. "slash2": "^2.0.0",
  101. "stylelint": "^9.10.1",
  102. "stylelint-config-css-modules": "^1.3.0",
  103. "stylelint-config-prettier": "^5.0.0",
  104. "stylelint-config-rational-order": "^0.1.0",
  105. "stylelint-config-standard": "^18.2.0",
  106. "stylelint-declaration-block-no-ignored-properties": "^2.1.0",
  107. "stylelint-order": "^2.0.0",
  108. "tslint": "^5.12.1",
  109. "tslint-config-prettier": "^1.17.0",
  110. "tslint-eslint-rules": "^5.4.0",
  111. "tslint-react": "^3.6.0",
  112. "umi": "^2.7.0-beta.2",
  113. "umi-plugin-ga": "^1.1.3",
  114. "umi-plugin-pro-block": "^1.3.0",
  115. "umi-plugin-react": "^1.8.0-beta.1",
  116. "umi-request": "^1.0.0"
  117. },
  118. "optionalDependencies": {
  119. "puppeteer": "^1.12.1"
  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. }