package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {
  2. "name": "ant-design-pro",
  3. "version": "2.1.0",
  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",
  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",
  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. "test": "umi test",
  19. "test:component": "umi test ./src/components",
  20. "test:all": "node ./tests/run-tests.js",
  21. "prettier": "prettier --write ./src/**/**/**/*",
  22. "docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up",
  23. "docker:build": "docker-compose -f ./docker/docker-compose.dev.yml build",
  24. "docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up",
  25. "docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build"
  26. },
  27. "dependencies": {
  28. "@antv/data-set": "^0.9.6",
  29. "@babel/runtime": "^7.1.2",
  30. "antd": "^3.10.0",
  31. "bizcharts": "^3.2.2",
  32. "bizcharts-plugin-slider": "^2.0.3",
  33. "classnames": "^2.2.6",
  34. "dva": "^2.4.0",
  35. "enquire-js": "^0.2.1",
  36. "hash.js": "^1.1.5",
  37. "lodash": "^4.17.10",
  38. "lodash-decorators": "^6.0.0",
  39. "memoize-one": "^4.0.0",
  40. "moment": "^2.22.2",
  41. "numeral": "^2.0.6",
  42. "nzh": "^1.0.3",
  43. "omit.js": "^1.0.0",
  44. "path-to-regexp": "^2.4.0",
  45. "prop-types": "^15.5.10",
  46. "qs": "^6.5.2",
  47. "rc-animate": "^2.4.4",
  48. "react": "^16.5.1",
  49. "react-container-query": "^0.11.0",
  50. "react-copy-to-clipboard": "^5.0.1",
  51. "react-document-title": "^2.0.3",
  52. "react-dom": "^16.5.1",
  53. "react-fittext": "^1.0.0",
  54. "react-router-dom": "^4.3.1"
  55. },
  56. "devDependencies": {
  57. "@types/react": "^16.4.16",
  58. "@types/react-dom": "^16.0.9",
  59. "antd-pro-merge-less": "^0.0.9",
  60. "antd-theme-webpack-plugin": "^1.1.8",
  61. "babel-eslint": "^10.0.1",
  62. "cross-env": "^5.1.1",
  63. "cross-port-killer": "^1.0.1",
  64. "enzyme": "^3.7.0",
  65. "eslint": "^5.4.0",
  66. "eslint-config-airbnb": "^17.0.0",
  67. "eslint-config-prettier": "^3.0.1",
  68. "eslint-plugin-babel": "^5.1.0",
  69. "eslint-plugin-compat": "^2.6.2",
  70. "eslint-plugin-import": "^2.8.0",
  71. "eslint-plugin-jsx-a11y": "^6.1.2",
  72. "eslint-plugin-markdown": "^1.0.0-beta.6",
  73. "eslint-plugin-react": "^7.11.1",
  74. "gh-pages": "^2.0.1",
  75. "husky": "^1.1.2",
  76. "lint-staged": "^7.2.0",
  77. "merge-umi-mock-data": "^0.0.3",
  78. "mockjs": "^1.0.1-beta3",
  79. "prettier": "1.14.3",
  80. "pro-download": "^1.0.1",
  81. "stylelint": "^9.4.0",
  82. "stylelint-config-prettier": "^4.0.0",
  83. "stylelint-config-standard": "^18.0.0",
  84. "umi": "^2.1.2",
  85. "umi-plugin-ga": "^1.1.3",
  86. "umi-plugin-react": "^1.1.1"
  87. },
  88. "optionalDependencies": {
  89. "puppeteer": "^1.9.0"
  90. },
  91. "lint-staged": {
  92. "**/*.{js,jsx,less}": [
  93. "prettier --write",
  94. "git add"
  95. ],
  96. "**/*.{js,jsx}": "npm run lint-staged:js",
  97. "**/*.less": "stylelint --syntax less"
  98. },
  99. "engines": {
  100. "node": ">=8.0.0"
  101. },
  102. "browserslist": [
  103. "> 1%",
  104. "last 2 versions",
  105. "not ie <= 10"
  106. ],
  107. "husky": {
  108. "hooks": {
  109. "pre-commit": "npm run lint-staged"
  110. }
  111. }
  112. }