You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

package.json 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. {
  2. "name": "sonarqube-vsts",
  3. "version": "0.0.1",
  4. "description": "Quality Widget for VSTS",
  5. "repository": "SonarSource/sonarqube",
  6. "license": "LGPL-3.0",
  7. "private": true,
  8. "dependencies": {
  9. "babel-polyfill": "6.26.0",
  10. "classnames": "2.2.5",
  11. "lodash": "4.17.4",
  12. "react": "16.4.2",
  13. "react-dom": "16.4.2",
  14. "whatwg-fetch": "2.0.3"
  15. },
  16. "devDependencies": {
  17. "@types/classnames": "2.2.3",
  18. "@types/enzyme": "3.1.10",
  19. "@types/jest": "23.3.1",
  20. "@types/lodash": "4.14.102",
  21. "@types/react": "16.4.8",
  22. "@types/react-dom": "16.0.7",
  23. "autoprefixer": "7.1.6",
  24. "babel-core": "6.26.0",
  25. "babel-jest": "23.4.2",
  26. "babel-loader": "7.1.4",
  27. "babel-plugin-dynamic-import-node": "1.1.0",
  28. "babel-plugin-lodash": "3.3.2",
  29. "babel-plugin-syntax-dynamic-import": "6.18.0",
  30. "babel-plugin-transform-class-properties": "^6.22.0",
  31. "babel-plugin-transform-object-rest-spread": "6.26.0",
  32. "babel-plugin-transform-react-constant-elements": "^6.22.0",
  33. "babel-plugin-transform-react-jsx-self": "^6.22.0",
  34. "babel-plugin-transform-react-jsx-source": "^6.22.0",
  35. "babel-preset-env": "1.6.1",
  36. "babel-preset-react": "6.22.0",
  37. "chalk": "2.3.2",
  38. "clean-webpack-plugin": "0.1.19",
  39. "copy-webpack-plugin": "4.5.1",
  40. "css-loader": "0.28.11",
  41. "enzyme": "3.3.0",
  42. "enzyme-adapter-react-16": "1.1.1",
  43. "enzyme-to-json": "3.3.4",
  44. "escape-string-regexp": "1.0.5",
  45. "eslint": "4.19.1",
  46. "eslint-config-sonarqube": "0.1.0",
  47. "eslint-plugin-import": "2.11.0",
  48. "eslint-plugin-jsx-a11y": "6.0.3",
  49. "eslint-plugin-promise": "3.7.0",
  50. "eslint-plugin-react": "7.7.0",
  51. "eslint-plugin-sonarjs": "0.1.0",
  52. "html-webpack-plugin": "3.0.6",
  53. "jest": "23.4.2",
  54. "postcss-calc": "6.0.1",
  55. "postcss-custom-properties": "6.2.0",
  56. "postcss-loader": "2.1.1",
  57. "prettier": "1.14.0",
  58. "react-dev-utils": "5.0.0",
  59. "react-error-overlay": "1.0.7",
  60. "react-test-renderer": "16.4.2",
  61. "style-loader": "0.20.3",
  62. "ts-jest": "23.1.3",
  63. "ts-loader": "4.3.0",
  64. "typescript": "3.0.1",
  65. "typescript-eslint-parser": "18.0.0",
  66. "webpack": "4.1.1",
  67. "webpack-bundle-analyzer": "2.11.1",
  68. "webpack-dev-server": "3.1.1"
  69. },
  70. "scripts": {
  71. "start": "node scripts/start.js",
  72. "build": "node scripts/build.js",
  73. "test": "jest --passWithNoTests",
  74. "format": "prettier --write --list-different 'src/main/js/!(libs)/**/*.{js,ts,tsx,css}'",
  75. "lint": "eslint --ext js,ts,tsx --quiet src/main/js",
  76. "lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src/main/js",
  77. "ts-check": "tsc --noEmit",
  78. "prettier-check": "prettier --list-different 'src/main/js/!(libs)/**/*.{js,ts,tsx,css}'",
  79. "validate": "yarn lint && yarn ts-check && yarn prettier-check && yarn test"
  80. },
  81. "engines": {
  82. "node": ">=6"
  83. },
  84. "browserslist": [
  85. "last 3 Chrome versions",
  86. "last 3 Firefox versions",
  87. "last 3 Safari versions",
  88. "last 3 Edge versions",
  89. "IE 11"
  90. ],
  91. "jest": {
  92. "coverageDirectory": "<rootDir>/target/coverage",
  93. "coveragePathIgnorePatterns": [
  94. "<rootDir>/node_modules",
  95. "<rootDir>/tests"
  96. ],
  97. "moduleFileExtensions": [
  98. "ts",
  99. "tsx",
  100. "js",
  101. "json"
  102. ],
  103. "moduleNameMapper": {
  104. "^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/config/jest/FileStub.js",
  105. "^.+\\.css$": "<rootDir>/config/jest/CSSStub.js"
  106. },
  107. "setupFiles": [
  108. "<rootDir>/config/polyfills.js",
  109. "<rootDir>/config/jest/SetupTestEnvironment.js",
  110. "<rootDir>/config/jest/SetupEnzyme.js"
  111. ],
  112. "snapshotSerializers": [
  113. "enzyme-to-json/serializer"
  114. ],
  115. "testPathIgnorePatterns": [
  116. "<rootDir>/node_modules",
  117. "<rootDir>/src/main/webapp",
  118. "<rootDir>/scripts"
  119. ],
  120. "testRegex": "(/__tests__/.*|\\-test)\\.(ts|tsx|js)$",
  121. "transform": {
  122. "\\.js$": "babel-jest",
  123. "\\.(ts|tsx)$": "ts-jest"
  124. }
  125. },
  126. "prettier": {
  127. "jsxBracketSameLine": true,
  128. "printWidth": 100,
  129. "singleQuote": true
  130. }
  131. }