package.json 3.1 KB

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