package.json 3.2 KB

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