package.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "name": "ant-design-pro",
  3. "version": "0.1.10",
  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": "NO_PROXY=true roadhog server",
  10. "build": "roadhog build",
  11. "site": "roadhog-api-doc static",
  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": "next",
  23. "classnames": "^2.2.5",
  24. "core-js": "^2.5.1",
  25. "dva": "^2.0.3",
  26. "lodash": "^4.17.4",
  27. "lodash-decorators": "^4.4.1",
  28. "lodash.clonedeep": "^4.5.0",
  29. "moment": "^2.19.1",
  30. "numeral": "^2.0.6",
  31. "prop-types": "^15.5.10",
  32. "qs": "^6.5.0",
  33. "react": "^16.0.0",
  34. "react-document-title": "^2.0.3",
  35. "react-dom": "^16.0.0",
  36. "react-fittext": "^1.0.0"
  37. },
  38. "devDependencies": {
  39. "babel-eslint": "^8.0.1",
  40. "babel-jest": "^21.0.0",
  41. "babel-plugin-dva-hmr": "^0.3.2",
  42. "babel-plugin-import": "^1.2.1",
  43. "babel-plugin-transform-class-properties": "^6.24.1",
  44. "babel-plugin-transform-decorators-legacy": "^1.3.4",
  45. "babel-plugin-transform-runtime": "^6.9.0",
  46. "babel-preset-env": "^1.6.1",
  47. "babel-preset-react": "^6.24.1",
  48. "babel-runtime": "^6.9.2",
  49. "cross-port-killer": "^1.0.1",
  50. "enzyme": "^3.1.0",
  51. "enzyme-adapter-react-16": "^1.0.2",
  52. "eslint": "^4.8.0",
  53. "eslint-config-airbnb": "^16.0.0",
  54. "eslint-plugin-babel": "^4.0.0",
  55. "eslint-plugin-import": "^2.2.0",
  56. "eslint-plugin-jsx-a11y": "^6.0.0",
  57. "eslint-plugin-markdown": "^1.0.0-beta.6",
  58. "eslint-plugin-react": "^7.0.1",
  59. "gh-pages": "^1.0.0",
  60. "husky": "^0.14.3",
  61. "jest": "^21.0.1",
  62. "lint-staged": "^4.3.0",
  63. "mockjs": "^1.0.1-beta3",
  64. "react-container-query": "^0.9.1",
  65. "react-test-renderer": "^16.0.0",
  66. "redbox-react": "^1.3.2",
  67. "roadhog": "^1.2.1",
  68. "roadhog-api-doc": "^0.1.8",
  69. "stylelint": "^8.1.0",
  70. "stylelint-config-standard": "^17.0.0"
  71. },
  72. "optionalDependencies": {
  73. "nightmare": "^2.10.0"
  74. },
  75. "babel": {
  76. "presets": [
  77. "env",
  78. "react"
  79. ],
  80. "plugins": [
  81. "transform-decorators-legacy",
  82. "transform-class-properties"
  83. ]
  84. },
  85. "jest": {
  86. "setupFiles": [
  87. "<rootDir>/tests/setupTests.js"
  88. ],
  89. "testMatch": [
  90. "**/?(*.)(spec|test|e2e).js?(x)"
  91. ],
  92. "setupTestFrameworkScriptFile": "<rootDir>/tests/jasmine.js",
  93. "moduleFileExtensions": [
  94. "js",
  95. "jsx"
  96. ],
  97. "moduleNameMapper": {
  98. "\\.(css|less)$": "<rootDir>/tests/styleMock.js"
  99. }
  100. },
  101. "lint-staged": {
  102. "**/*.{js,jsx}": "lint-staged:js",
  103. "**/*.less": "stylelint --syntax less"
  104. }
  105. }