package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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": "cross-env ESLINT=none umi dev",
  10. "start:no-mock": "cross-env MOCK=none ESLINT=none umi dev",
  11. "build": "cross-env ESLINT=none 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/polyfill": "^7.0.0-beta.36",
  28. "antd": "^3.8.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.1.0",
  40. "prop-types": "^15.5.10",
  41. "qs": "^6.5.0",
  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. "rollbar": "^2.4.2",
  48. "setprototypeof": "^1.1.0",
  49. "url-polyfill": "^1.0.13"
  50. },
  51. "devDependencies": {
  52. "@babel/polyfill": "^7.0.0-beta.53",
  53. "@types/react": "^16.4.4",
  54. "@types/react-dom": "^16.0.6",
  55. "antd-pro-merge-less": "^0.0.2",
  56. "antd-theme-webpack-plugin": "^1.0.8",
  57. "babel-eslint": "^8.2.6",
  58. "babel-plugin-dva-hmr": "^0.4.1",
  59. "babel-plugin-import": "^1.8.0",
  60. "babel-plugin-module-resolver": "^3.1.1",
  61. "babel-plugin-transform-decorators-legacy": "^1.3.4",
  62. "babel-runtime": "^6.9.2",
  63. "cross-env": "^5.1.1",
  64. "cross-port-killer": "^1.0.1",
  65. "enzyme": "^3.4.1",
  66. "eslint": "^5.0.0",
  67. "eslint-config-airbnb": "^17.0.0",
  68. "eslint-config-prettier": "^2.9.0",
  69. "eslint-config-umi": "^0.1.4",
  70. "eslint-plugin-babel": "^5.1.0",
  71. "eslint-plugin-compat": "^2.5.1",
  72. "eslint-plugin-flowtype": "2.50.0",
  73. "eslint-plugin-import": "^2.8.0",
  74. "eslint-plugin-jsx-a11y": "^6.0.3",
  75. "eslint-plugin-markdown": "^1.0.0-beta.6",
  76. "eslint-plugin-react": "^7.9.1",
  77. "gh-pages": "^1.2.0",
  78. "lint-staged": "^7.2.0",
  79. "merge-umi-mock-data": "^0.0.2",
  80. "mockjs": "^1.0.1-beta3",
  81. "prettier": "1.14.0",
  82. "pro-download": "^1.0.1",
  83. "react-loadable": "^5.4.0",
  84. "redbox-react": "^1.5.0",
  85. "regenerator-runtime": "^0.12.0",
  86. "stylelint": "^9.4.0",
  87. "stylelint-config-prettier": "^3.0.4",
  88. "stylelint-config-standard": "^18.0.0",
  89. "umi": "^1.3.15",
  90. "umi-plugin-dva": "^0.9.1",
  91. "umi-plugin-locale": "^1.0.1",
  92. "umi-plugin-routes": "^0.1.5"
  93. },
  94. "optionalDependencies": {
  95. "puppeteer": "^1.6.0"
  96. },
  97. "lint-staged": {
  98. "**/*.{js,jsx,less}": [
  99. "prettier --write",
  100. "git add"
  101. ],
  102. "**/*.{js,jsx}": "npm run lint-staged:js",
  103. "**/*.less": "stylelint --syntax less"
  104. },
  105. "engines": {
  106. "node": ">=8.0.0"
  107. },
  108. "browserslist": [
  109. "> 1%",
  110. "last 2 versions",
  111. "not ie <= 10"
  112. ]
  113. }