package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. {
  2. "name": "ant-design-pro",
  3. "version": "0.3.1",
  4. "description": "An out-of-box UI solution for enterprise applications",
  5. "private": true,
  6. "scripts": {
  7. "start": "roadhog server",
  8. "start:no-proxy": "cross-env NO_PROXY=true roadhog server",
  9. "build": "roadhog build",
  10. "site": "roadhog-api-doc static && gh-pages -d dist",
  11. "analyze": "roadhog build --analyze",
  12. "lint:style": "stylelint \"src/**/*.less\" --syntax less",
  13. "lint": "eslint --ext .js src mock tests && npm run lint:style",
  14. "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
  15. "lint-staged": "lint-staged",
  16. "lint-staged:js": "eslint --ext .js",
  17. "test": "jest",
  18. "test:all": "node ./tests/run-tests.js"
  19. },
  20. "dependencies": {
  21. "antd": "^3.0.0",
  22. "babel-polyfill": "^6.26.0",
  23. "babel-runtime": "^6.9.2",
  24. "classnames": "^2.2.5",
  25. "core-js": "^2.5.1",
  26. "dva": "^2.1.0",
  27. "enquire-js": "^0.1.1",
  28. "g-cloud": "^1.0.2-beta",
  29. "g2": "^2.3.13",
  30. "g2-plugin-slider": "^1.2.1",
  31. "hls.js": "^0.8.9",
  32. "lodash": "^4.17.4",
  33. "lodash-decorators": "^4.4.1",
  34. "lodash.clonedeep": "^4.5.0",
  35. "moment": "^2.19.1",
  36. "numeral": "^2.0.6",
  37. "prop-types": "^15.5.10",
  38. "qs": "^6.5.0",
  39. "query-string": "^5.0.1",
  40. "rc-drawer-menu": "^0.5.0",
  41. "rc-queue-anim": "^1.4.1",
  42. "rc-tween-one": "^1.7.1",
  43. "react": "^16.0.0",
  44. "react-container-query": "^0.9.1",
  45. "react-document-title": "^2.0.3",
  46. "react-dom": "^16.0.0",
  47. "react-fittext": "^1.0.0"
  48. },
  49. "devDependencies": {
  50. "babel-eslint": "^8.0.1",
  51. "babel-jest": "^21.0.0",
  52. "babel-plugin-dva-hmr": "^0.3.2",
  53. "babel-plugin-import": "^1.2.1",
  54. "babel-plugin-transform-class-properties": "^6.24.1",
  55. "babel-plugin-transform-decorators-legacy": "^1.3.4",
  56. "babel-plugin-transform-runtime": "^6.9.0",
  57. "babel-preset-env": "^1.6.1",
  58. "babel-preset-react": "^6.24.1",
  59. "cross-env": "^5.1.1",
  60. "cross-port-killer": "^1.0.1",
  61. "dva-model-extend": "^0.1.2",
  62. "enzyme": "^3.1.0",
  63. "enzyme-adapter-react-16": "^1.0.2",
  64. "eslint": "^4.8.0",
  65. "eslint-config-airbnb": "^16.0.0",
  66. "eslint-plugin-babel": "^4.0.0",
  67. "eslint-plugin-compat": "^2.1.0",
  68. "eslint-plugin-import": "^2.2.0",
  69. "eslint-plugin-jsx-a11y": "^6.0.0",
  70. "eslint-plugin-markdown": "^1.0.0-beta.6",
  71. "eslint-plugin-react": "^7.0.1",
  72. "gh-pages": "^1.0.0",
  73. "husky": "^0.14.3",
  74. "jest": "^21.0.1",
  75. "lint-staged": "^4.3.0",
  76. "mockjs": "^1.0.1-beta3",
  77. "prettier": "^1.9.0",
  78. "pro-download": "^1.0.0",
  79. "react-markdown": "^3.1.4",
  80. "react-test-renderer": "^16.0.0",
  81. "redbox-react": "^1.3.2",
  82. "roadhog": "^1.3.1",
  83. "roadhog-api-doc": "^0.3.3",
  84. "rollbar": "^2.3.1",
  85. "stylelint": "^8.1.0",
  86. "stylelint-config-standard": "^17.0.0"
  87. },
  88. "optionalDependencies": {
  89. "nightmare": "^2.10.0"
  90. },
  91. "babel": {
  92. "presets": [
  93. "env",
  94. "react"
  95. ],
  96. "plugins": [
  97. "transform-decorators-legacy",
  98. "transform-class-properties"
  99. ]
  100. },
  101. "jest": {
  102. "setupFiles": [
  103. "<rootDir>/tests/setupTests.js"
  104. ],
  105. "testMatch": [
  106. "**/?(*.)(spec|test|e2e).js?(x)"
  107. ],
  108. "setupTestFrameworkScriptFile": "<rootDir>/tests/jasmine.js",
  109. "moduleFileExtensions": [
  110. "js",
  111. "jsx"
  112. ],
  113. "moduleNameMapper": {
  114. "\\.(css|less)$": "<rootDir>/tests/styleMock.js"
  115. }
  116. },
  117. "lint-staged": {
  118. "**/*.{js,jsx}": "lint-staged:js",
  119. "**/*.less": "stylelint --syntax less"
  120. },
  121. "browserslist": [
  122. "> 1%",
  123. "last 2 versions",
  124. "not ie <= 10"
  125. ]
  126. }