package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "name": "ant-design-pro",
  3. "version": "2.0.0",
  4. "description": "An out-of-box UI solution for enterprise applications",
  5. "private": true,
  6. "scripts": {
  7. "precommit": "npm run lint-staged",
  8. "presite": "node ./scripts/generateMock.js && cd functions && npm install",
  9. "start": "cross-env APP_TYPE=site umi dev",
  10. "start:no-mock": "cross-env MOCK=none umi dev",
  11. "build": "umi build",
  12. "site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy",
  13. "analyze": "cross-env ANALYZE=1 umi build",
  14. "lint:style": "stylelint \"src/**/*.less\" --syntax less",
  15. "lint": "eslint --ext .js src mock tests && npm run lint:style",
  16. "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
  17. "lint-staged": "lint-staged",
  18. "lint-staged:js": "eslint --ext .js",
  19. "test": "umi test",
  20. "test:component": "umi test ./src/components",
  21. "test:all": "node ./tests/run-tests.js",
  22. "prettier": "prettier --write ./src/**/**/**/*",
  23. "docker:dev":"docker-compose -f ./docker/docker-compose.dev.yml up",
  24. "docker:build":"docker-compose -f ./docker/docker-compose.dev.yml build",
  25. "docker-prod:dev":"docker-compose -f ./docker/docker-compose.yml up",
  26. "docker-prod:build":"docker-compose -f ./docker/docker-compose.yml build"
  27. },
  28. "dependencies": {
  29. "@antv/data-set": "^0.9.6",
  30. "@babel/runtime": "^7.0.0",
  31. "antd": "^3.9.2",
  32. "bizcharts": "^3.2.2",
  33. "bizcharts-plugin-slider": "^2.0.3",
  34. "classnames": "^2.2.6",
  35. "dva": "^2.4.0",
  36. "enquire-js": "^0.2.1",
  37. "hash.js": "^1.1.5",
  38. "lodash": "^4.17.10",
  39. "lodash-decorators": "^6.0.0",
  40. "memoize-one": "^4.0.0",
  41. "moment": "^2.22.2",
  42. "numeral": "^2.0.6",
  43. "nzh": "^1.0.3",
  44. "omit.js": "^1.0.0",
  45. "path-to-regexp": "^2.4.0",
  46. "prop-types": "^15.5.10",
  47. "qs": "^6.5.2",
  48. "rc-animate": "^2.4.4",
  49. "react": "^16.5.1",
  50. "react-container-query": "^0.11.0",
  51. "react-copy-to-clipboard": "^5.0.1",
  52. "react-document-title": "^2.0.3",
  53. "react-dom": "^16.5.1",
  54. "react-fittext": "^1.0.0",
  55. "react-router-dom": "^4.3.1"
  56. },
  57. "devDependencies": {
  58. "@types/react": "^16.4.11",
  59. "@types/react-dom": "^16.0.6",
  60. "antd-pro-merge-less": "^0.0.9",
  61. "antd-pro-theme-webpack-plugin": "^1.1.8",
  62. "babel-eslint": "^9.0.0",
  63. "cross-env": "^5.1.1",
  64. "cross-port-killer": "^1.0.1",
  65. "enzyme": "^3.4.4",
  66. "eslint": "^5.4.0",
  67. "eslint-config-airbnb": "^17.0.0",
  68. "eslint-config-prettier": "^3.0.1",
  69. "eslint-plugin-babel": "^5.1.0",
  70. "eslint-plugin-compat": "^2.5.1",
  71. "eslint-plugin-import": "^2.8.0",
  72. "eslint-plugin-jsx-a11y": "^6.0.3",
  73. "eslint-plugin-markdown": "^1.0.0-beta.6",
  74. "eslint-plugin-react": "^7.11.1",
  75. "gh-pages": "^2.0.0",
  76. "husky": "^0.14.3",
  77. "lint-staged": "^7.2.0",
  78. "merge-umi-mock-data": "^0.0.3",
  79. "mockjs": "^1.0.1-beta3",
  80. "prettier": "1.14.2",
  81. "pro-download": "^1.0.1",
  82. "stylelint": "^9.4.0",
  83. "stylelint-config-prettier": "^4.0.0",
  84. "stylelint-config-standard": "^18.0.0",
  85. "umi": "^2.1.1",
  86. "umi-plugin-react": "^1.1.1",
  87. "umi-plugin-ga": "^1.0.3"
  88. },
  89. "optionalDependencies": {
  90. "puppeteer": "^1.6.0"
  91. },
  92. "lint-staged": {
  93. "**/*.{js,jsx,less}": [
  94. "prettier --write",
  95. "git add"
  96. ],
  97. "**/*.{js,jsx}": "npm run lint-staged:js",
  98. "**/*.less": "stylelint --syntax less"
  99. },
  100. "engines": {
  101. "node": ">=8.0.0"
  102. },
  103. "browserslist": [
  104. "> 1%",
  105. "last 2 versions",
  106. "not ie <= 10"
  107. ]
  108. }