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. "precommit": "npm run lint-staged",
  8. "start": "roadhog server",
  9. "start:no-proxy": "cross-env NO_PROXY=true roadhog server",
  10. "build": "roadhog build",
  11. "site": "roadhog-api-doc static && gh-pages -d dist",
  12. "analyze": "roadhog build --analyze",
  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": "jest",
  19. "test:all": "node ./tests/run-tests.js"
  20. },
  21. "dependencies": {
  22. "antd": "^3.1.6",
  23. "babel-polyfill": "^6.26.0",
  24. "babel-runtime": "^6.9.2",
  25. "classnames": "^2.2.5",
  26. "core-js": "^2.5.1",
  27. "dva": "^2.1.0",
  28. "enquire-js": "^0.1.1",
  29. "g-cloud": "^1.0.2-beta",
  30. "g2": "^2.3.13",
  31. "g2-plugin-slider": "^1.2.1",
  32. "hls.js": "^0.8.9",
  33. "lodash": "^4.17.4",
  34. "lodash-decorators": "^4.4.1",
  35. "lodash.clonedeep": "^4.5.0",
  36. "moment": "^2.19.1",
  37. "numeral": "^2.0.6",
  38. "prop-types": "^15.5.10",
  39. "qs": "^6.5.0",
  40. "query-string": "^5.0.1",
  41. "rc-drawer-menu": "^0.5.0",
  42. "rc-queue-anim": "^1.4.1",
  43. "rc-tween-one": "^1.7.1",
  44. "react": "^16.0.0",
  45. "react-container-query": "^0.9.1",
  46. "react-document-title": "^2.0.3",
  47. "react-dom": "^16.0.0",
  48. "react-fittext": "^1.0.0"
  49. },
  50. "devDependencies": {
  51. "babel-eslint": "^8.0.1",
  52. "babel-jest": "^21.0.0",
  53. "babel-plugin-dva-hmr": "^0.3.2",
  54. "babel-plugin-import": "^1.2.1",
  55. "babel-plugin-transform-class-properties": "^6.24.1",
  56. "babel-plugin-transform-decorators-legacy": "^1.3.4",
  57. "babel-plugin-transform-runtime": "^6.9.0",
  58. "babel-preset-env": "^1.6.1",
  59. "babel-preset-react": "^6.24.1",
  60. "cross-env": "^5.1.1",
  61. "cross-port-killer": "^1.0.1",
  62. "dva-model-extend": "^0.1.2",
  63. "enzyme": "^3.1.0",
  64. "enzyme-adapter-react-16": "^1.0.2",
  65. "eslint": "^4.8.0",
  66. "eslint-config-airbnb": "^16.0.0",
  67. "eslint-plugin-babel": "^4.0.0",
  68. "eslint-plugin-compat": "^2.1.0",
  69. "eslint-plugin-import": "^2.2.0",
  70. "eslint-plugin-jsx-a11y": "^6.0.0",
  71. "eslint-plugin-markdown": "^1.0.0-beta.6",
  72. "eslint-plugin-react": "^7.0.1",
  73. "gh-pages": "^1.0.0",
  74. "husky": "^0.14.3",
  75. "jest": "^21.0.1",
  76. "lint-staged": "^4.3.0",
  77. "mockjs": "^1.0.1-beta3",
  78. "prettier": "^1.9.0",
  79. "pro-download": "^1.0.0",
  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. }