package.json 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {
  2. "name": "ant-design-pro",
  3. "private": true,
  4. "scripts": {
  5. "precommit": "npm run lint-staged",
  6. "start": "roadhog server",
  7. "start:no-proxy": "NO_PROXY=true roadhog server",
  8. "build": "roadhog build",
  9. "site": "roadhog-api-doc static",
  10. "lint:style": "stylelint \"src/**/*.less\" --syntax less",
  11. "lint": "eslint --ext .js src mock tests && npm run lint:style",
  12. "lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
  13. "lint-staged": "lint-staged",
  14. "lint-staged:js": "eslint --ext .js",
  15. "test": "jest",
  16. "test:all": "node ./tests/run-tests.js"
  17. },
  18. "dependencies": {
  19. "antd": "next",
  20. "dva": "^1.2.1",
  21. "lodash": "^4.17.4",
  22. "numeral": "^2.0.6",
  23. "prop-types": "^15.5.10",
  24. "qs": "^6.5.0",
  25. "react": "^15.6.2",
  26. "react-document-title": "^2.0.3",
  27. "react-dom": "^15.6.2"
  28. },
  29. "devDependencies": {
  30. "babel-eslint": "^8.0.1",
  31. "babel-jest": "^21.0.0",
  32. "babel-plugin-dva-hmr": "^0.3.2",
  33. "babel-plugin-import": "^1.2.1",
  34. "babel-plugin-transform-decorators-legacy": "^1.3.4",
  35. "babel-plugin-transform-runtime": "^6.9.0",
  36. "babel-runtime": "^6.9.2",
  37. "cross-port-killer": "^1.0.1",
  38. "enzyme": "^3.1.0",
  39. "enzyme-adapter-react-15": "^1.0.2",
  40. "eslint": "^4.8.0",
  41. "eslint-config-airbnb": "^16.0.0",
  42. "eslint-plugin-babel": "^4.0.0",
  43. "eslint-plugin-import": "^2.2.0",
  44. "eslint-plugin-jsx-a11y": "^6.0.0",
  45. "eslint-plugin-markdown": "^1.0.0-beta.6",
  46. "eslint-plugin-react": "^7.0.1",
  47. "gh-pages": "^1.0.0",
  48. "husky": "^0.14.3",
  49. "jest": "^21.0.1",
  50. "lint-staged": "^4.3.0",
  51. "mockjs": "^1.0.1-beta3",
  52. "nightmare": "^2.10.0",
  53. "react-test-renderer": "^15.6.2",
  54. "redbox-react": "^1.3.2",
  55. "roadhog": "^1.0.2",
  56. "roadhog-api-doc": "^0.1.8",
  57. "stylelint": "^8.1.0",
  58. "stylelint-config-standard": "^17.0.0"
  59. },
  60. "babel": {
  61. "presets": [
  62. "es2015",
  63. "stage-0",
  64. "react"
  65. ],
  66. "plugins": [
  67. "transform-decorators-legacy"
  68. ]
  69. },
  70. "jest": {
  71. "setupFiles": [
  72. "<rootDir>/tests/setupTests.js"
  73. ],
  74. "testMatch": [
  75. "**/?(*.)(spec|test|e2e).js?(x)"
  76. ],
  77. "setupTestFrameworkScriptFile": "<rootDir>/tests/jasmine.js",
  78. "moduleFileExtensions": [
  79. "js",
  80. "jsx"
  81. ],
  82. "moduleNameMapper": {
  83. "\\.(css|less)$": "<rootDir>/tests/styleMock.js"
  84. }
  85. },
  86. "lint-staged": {
  87. "**/*.{js,jsx}": "lint-staged:js",
  88. "**/*.less": "stylelint --syntax less",
  89. "src/**/demo/*.md": "lint-staged:demo"
  90. }
  91. }