package.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. {
  2. "name": "ant-design-pro",
  3. "version": "2.1.1",
  4. "description": "An out-of-box UI solution for enterprise applications",
  5. "private": true,
  6. "scripts": {
  7. "presite": "node ./scripts/generateMock.js && cd functions && npm install",
  8. "start": "cross-env APP_TYPE=site umi dev --port=8107",
  9. "start:no-mock": "cross-env MOCK=none umi dev",
  10. "build": "umi build",
  11. "site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy && npm run docker:push",
  12. "analyze": "cross-env ANALYZE=1 umi build",
  13. "lint:style": "stylelint \"src/**/*.less\" --syntax less",
  14. "lint": "eslint --ext .js src mock tests && npm run lint:style",
  15. "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
  16. "lint-staged": "lint-staged",
  17. "lint-staged:js": "eslint --ext .js",
  18. "tslint": "npm run tslint:fix",
  19. "tslint:fix": "tslint --fix 'src/**/*.ts*'",
  20. "test": "umi test",
  21. "test:component": "umi test ./src/components",
  22. "test:all": "node ./tests/run-tests.js",
  23. "prettier": "node ./scripts/prettier.js",
  24. "docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up",
  25. "docker:build": "docker-compose -f ./docker/docker-compose.dev.yml build",
  26. "docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up",
  27. "docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build",
  28. "docker-hub:build": "docker build -f Dockerfile.hub -t ant-design-pro ./",
  29. "docker:tag": "docker tag ant-design-pro chenshuai2144/ant-design-pro",
  30. "docker:push": "npm run docker-hub:build && npm run docker:tag && docker push chenshuai2144/ant-design-pro"
  31. },
  32. "dependencies": {
  33. "@antv/data-set": "^0.10.0",
  34. "@babel/runtime": "^7.1.5",
  35. "antd": "^3.16.6",
  36. "bizcharts": "^3.4.3",
  37. "bizcharts-plugin-slider": "^2.1.1-beta.1",
  38. "classnames": "^2.2.6",
  39. "dva": "^2.4.0",
  40. "enquire-js": "^0.2.1",
  41. "hash.js": "^1.1.5",
  42. "jquery": "^3.5.1",
  43. "lodash": "^4.17.10",
  44. "lodash-decorators": "^6.0.0",
  45. "memoize-one": "^5.0.0",
  46. "moment": "^2.22.2",
  47. "numeral": "^2.0.6",
  48. "nzh": "^1.0.3",
  49. "omit.js": "^1.0.0",
  50. "path-to-regexp": "^2.4.0",
  51. "prop-types": "^15.5.10",
  52. "qrcode.react": "^0.9.3",
  53. "qs": "^6.6.0",
  54. "quill-delta-to-html": "^0.10.7",
  55. "rc-animate": "^2.4.4",
  56. "re-resizable": "^4.11.0",
  57. "react": "^16.6.3",
  58. "react-beautiful-dnd": "^10.1.1",
  59. "react-color": "^2.14.1",
  60. "react-container-query": "^0.11.0",
  61. "react-copy-to-clipboard": "^5.0.1",
  62. "react-custom-scrollbars": "^4.2.1",
  63. "react-document-title": "^2.0.3",
  64. "react-dom": "^16.6.3",
  65. "react-fittext": "^1.0.0",
  66. "react-marquee": "^1.0.0",
  67. "react-media": "^1.8.0",
  68. "react-quill": "^1.3.3",
  69. "react-resizable": "^1.7.5",
  70. "react-router-dom": "^4.3.1",
  71. "react-slick": "^0.27.11",
  72. "slick-carousel": "^1.8.1"
  73. },
  74. "devDependencies": {
  75. "@types/react": "^16.7.7",
  76. "@types/react-dom": "^16.0.10",
  77. "antd-pro-merge-less": "^1.0.0",
  78. "antd-theme-webpack-plugin": "^1.1.8",
  79. "babel-eslint": "^10.0.1",
  80. "cross-env": "^5.1.1",
  81. "cross-port-killer": "^1.0.1",
  82. "enzyme": "^3.7.0",
  83. "eslint": "^5.4.0",
  84. "eslint-config-airbnb": "^17.0.0",
  85. "eslint-config-prettier": "^3.0.1",
  86. "eslint-plugin-babel": "^5.3.0",
  87. "eslint-plugin-compat": "^2.6.2",
  88. "eslint-plugin-import": "^2.14.0",
  89. "eslint-plugin-jsx-a11y": "^6.1.2",
  90. "eslint-plugin-markdown": "^1.0.0-beta.6",
  91. "eslint-plugin-react": "^7.11.1",
  92. "gh-pages": "^2.0.1",
  93. "husky": "^1.2.0",
  94. "jest-puppeteer": "^3.5.1",
  95. "lint-staged": "^8.1.0",
  96. "merge-umi-mock-data": "^0.0.3",
  97. "mockjs": "^1.0.1-beta3",
  98. "prettier": "1.15.2",
  99. "pro-download": "^1.0.1",
  100. "stylelint": "^9.8.0",
  101. "stylelint-config-prettier": "^4.0.0",
  102. "stylelint-config-standard": "^18.0.0",
  103. "tslint": "^5.10.0",
  104. "tslint-config-prettier": "^1.10.0",
  105. "tslint-react": "^3.6.0",
  106. "umi": "^2.2.7",
  107. "umi-plugin-ga": "^1.1.3",
  108. "umi-plugin-react": "^1.2.0"
  109. },
  110. "optionalDependencies": {
  111. "puppeteer": "^1.10.0"
  112. },
  113. "lint-staged": {
  114. "**/*.{jsx}": "npm run lint-staged:js"
  115. },
  116. "engines": {
  117. "node": ">=8.0.0"
  118. },
  119. "browserslist": [
  120. "> 1%",
  121. "last 2 versions",
  122. "not ie <= 10"
  123. ],
  124. "husky": {
  125. "hooks": {
  126. "pre-commit": "npm run lint-staged"
  127. }
  128. }
  129. }