package.json 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. {
  2. "name": "ant-design-pro",
  3. "version": "2.0.0-beta.4",
  4. "description": "An out-of-box UI solution for enterprise applications",
  5. "private": true,
  6. "scripts": {
  7. "precommit": "npm run lint-staged",
  8. "presite": "npm run generate-mock && cd functions && npm install",
  9. "start": "umi dev",
  10. "start:no-mock": "cross-env MOCK=none umi dev",
  11. "build": "umi build",
  12. "site": "npm run presite && 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. "generate-mock": "node ./scripts/generateMock.js",
  21. "test:component": "umi test ./src/components",
  22. "test:all": "node ./tests/run-tests.js",
  23. "prettier": "prettier --write ./src/**/**/**/*"
  24. },
  25. "dependencies": {
  26. "@antv/data-set": "^0.9.0",
  27. "@babel/runtime": "^7.0.0",
  28. "antd": "^3.9.0-beta.0",
  29. "bizcharts": "^3.1.10",
  30. "bizcharts-plugin-slider": "^2.0.3",
  31. "classnames": "^2.2.6",
  32. "enquire-js": "^0.2.1",
  33. "lodash-decorators": "^6.0.0",
  34. "lodash.isequal": "^4.5.0",
  35. "memoize-one": "^4.0.0",
  36. "moment": "^2.22.2",
  37. "numeral": "^2.0.6",
  38. "omit.js": "^1.0.0",
  39. "path-to-regexp": "^2.4.0",
  40. "prop-types": "^15.5.10",
  41. "qs": "^6.5.2",
  42. "react": "^16.4.1",
  43. "react-container-query": "^0.11.0",
  44. "react-copy-to-clipboard": "^5.0.1",
  45. "react-document-title": "^2.0.3",
  46. "react-fittext": "^1.0.0"
  47. },
  48. "devDependencies": {
  49. "@types/react": "^16.4.11",
  50. "@types/react-dom": "^16.0.6",
  51. "antd-pro-merge-less": "^0.0.9",
  52. "antd-pro-theme-webpack-plugin": "^1.1.8",
  53. "babel-eslint": "^8.2.6",
  54. "cross-env": "^5.1.1",
  55. "cross-port-killer": "^1.0.1",
  56. "enzyme": "^3.4.4",
  57. "eslint": "^5.4.0",
  58. "eslint-config-airbnb": "^17.0.0",
  59. "eslint-config-prettier": "^3.0.1",
  60. "eslint-plugin-babel": "^5.1.0",
  61. "eslint-plugin-compat": "^2.5.1",
  62. "eslint-plugin-import": "^2.8.0",
  63. "eslint-plugin-jsx-a11y": "^6.0.3",
  64. "eslint-plugin-markdown": "^1.0.0-beta.6",
  65. "eslint-plugin-react": "^7.11.1",
  66. "gh-pages": "^1.2.0",
  67. "lint-staged": "^7.2.0",
  68. "merge-umi-mock-data": "^0.0.3",
  69. "mockjs": "^1.0.1-beta3",
  70. "prettier": "1.14.2",
  71. "pro-download": "^1.0.1",
  72. "stylelint": "^9.4.0",
  73. "stylelint-config-prettier": "^4.0.0",
  74. "stylelint-config-standard": "^18.0.0",
  75. "umi": "^2.0.0-beta.10",
  76. "umi-plugin-react": "^1.0.0-beta.10"
  77. },
  78. "optionalDependencies": {
  79. "puppeteer": "^1.6.0"
  80. },
  81. "lint-staged": {
  82. "**/*.{js,jsx,less}": [
  83. "prettier --write",
  84. "git add"
  85. ],
  86. "**/*.{js,jsx}": "npm run lint-staged:js",
  87. "**/*.less": "stylelint --syntax less"
  88. },
  89. "engines": {
  90. "node": ">=8.0.0"
  91. },
  92. "browserslist": [
  93. "> 1%",
  94. "last 2 versions",
  95. "not ie <= 10"
  96. ]
  97. }