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 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. {
  2. "name": "SonarQube",
  3. "version": "0.0.1",
  4. "description": "Put your technical debt under control",
  5. "repository": "SonarSource/sonarqube",
  6. "license": "LGPL-3.0",
  7. "dependencies": {
  8. "@babel/polyfill": "7.0.0",
  9. "classnames": "2.2.6",
  10. "clipboard": "2.0.1",
  11. "create-react-class": "15.6.3",
  12. "d3-array": "1.2.4",
  13. "d3-hierarchy": "1.1.8",
  14. "d3-scale": "2.1.2",
  15. "d3-selection": "1.3.2",
  16. "d3-shape": "1.2.2",
  17. "d3-zoom": "1.7.3",
  18. "date-fns": "1.29.0",
  19. "formik": "1.2.0",
  20. "history": "3.3.0",
  21. "intl-relativeformat": "2.1.0",
  22. "keymaster": "1.6.2",
  23. "lodash": "4.17.11",
  24. "lunr": "2.3.4",
  25. "mdast-util-toc": "2.1.0",
  26. "prop-types": "15.6.2",
  27. "react": "16.6.0",
  28. "react-countup": "4.0.0",
  29. "react-day-picker": "7.2.4",
  30. "react-dom": "16.6.0",
  31. "react-draggable": "3.0.5",
  32. "react-ga": "2.5.3",
  33. "react-helmet": "5.2.0",
  34. "react-intl": "2.7.2",
  35. "react-modal": "3.6.1",
  36. "react-redux": "5.0.7",
  37. "react-router": "3.2.0",
  38. "react-select": "1.2.1",
  39. "react-virtualized": "9.21.0",
  40. "redux": "4.0.1",
  41. "redux-logger": "3.0.6",
  42. "redux-thunk": "2.3.0",
  43. "remark-custom-blocks": "2.3.0",
  44. "remark-slug": "5.1.0",
  45. "remark-toc": "5.0.0",
  46. "unist-util-visit": "1.4.0",
  47. "valid-url": "1.0.9",
  48. "whatwg-fetch": "2.0.4"
  49. },
  50. "devDependencies": {
  51. "@babel/core": "7.1.2",
  52. "@babel/plugin-proposal-class-properties": "7.1.0",
  53. "@babel/plugin-proposal-object-rest-spread": "7.0.0",
  54. "@babel/plugin-syntax-dynamic-import": "7.0.0",
  55. "@babel/plugin-transform-react-constant-elements": "7.0.0",
  56. "@babel/plugin-transform-react-jsx-self": "7.0.0",
  57. "@babel/plugin-transform-react-jsx-source": "7.0.0",
  58. "@babel/preset-env": "7.1.0",
  59. "@babel/preset-react": "7.0.0",
  60. "@types/classnames": "2.2.6",
  61. "@types/clipboard": "2.0.1",
  62. "@types/d3-array": "1.2.4",
  63. "@types/d3-hierarchy": "1.1.4",
  64. "@types/d3-scale": "2.0.2",
  65. "@types/d3-selection": "1.3.2",
  66. "@types/d3-shape": "1.2.4",
  67. "@types/d3-zoom": "1.7.2",
  68. "@types/enzyme": "3.1.14",
  69. "@types/jest": "23.3.7",
  70. "@types/keymaster": "1.6.28",
  71. "@types/lodash": "4.14.117",
  72. "@types/prop-types": "15.5.6",
  73. "@types/react": "16.4.18",
  74. "@types/react-dom": "16.0.9",
  75. "@types/react-helmet": "5.0.7",
  76. "@types/react-intl": "2.3.11",
  77. "@types/react-modal": "3.2.1",
  78. "@types/react-redux": "6.0.6",
  79. "@types/react-router": "3.0.13",
  80. "@types/react-select": "1.2.6",
  81. "@types/react-virtualized": "9.18.7",
  82. "@types/valid-url": "1.0.2",
  83. "autoprefixer": "9.3.1",
  84. "babel-core": "7.0.0-bridge.0",
  85. "babel-jest": "23.6.0",
  86. "babel-loader": "8.0.4",
  87. "babel-plugin-dynamic-import-node": "2.2.0",
  88. "babel-plugin-lodash": "3.3.4",
  89. "chalk": "2.4.1",
  90. "clean-webpack-plugin": "0.1.19",
  91. "copy-webpack-plugin": "4.5.4",
  92. "css-loader": "1.0.0",
  93. "enzyme": "3.7.0",
  94. "enzyme-adapter-react-16": "1.6.0",
  95. "enzyme-to-json": "3.3.4",
  96. "escape-string-regexp": "1.0.5",
  97. "eslint": "5.7.0",
  98. "eslint-config-sonarqube": "0.2.0",
  99. "eslint-plugin-import": "2.14.0",
  100. "eslint-plugin-jsx-a11y": "6.1.2",
  101. "eslint-plugin-promise": "4.0.1",
  102. "eslint-plugin-react": "7.11.1",
  103. "eslint-plugin-sonarjs": "0.2.0",
  104. "expose-loader": "0.7.5",
  105. "glob": "7.1.3",
  106. "glob-promise": "3.4.0",
  107. "html-webpack-plugin": "3.2.0",
  108. "jest": "23.6.0",
  109. "lint-staged": "7.3.0",
  110. "lodash-webpack-plugin": "0.11.5",
  111. "mini-css-extract-plugin": "0.4.4",
  112. "postcss-calc": "7.0.0",
  113. "postcss-custom-properties": "8.0.8",
  114. "postcss-loader": "3.0.0",
  115. "prettier": "1.14.3",
  116. "raw-loader": "0.5.1",
  117. "react-dev-utils": "5.0.1",
  118. "react-error-overlay": "1.0.7",
  119. "react-test-renderer": "16.6.0",
  120. "remark": "9.0.0",
  121. "remark-react": "4.0.3",
  122. "style-loader": "0.23.1",
  123. "ts-jest": "23.10.4",
  124. "ts-loader": "5.2.2",
  125. "typescript": "3.1.3",
  126. "typescript-eslint-parser": "20.0.0",
  127. "webpack": "4.27.1",
  128. "webpack-bundle-analyzer": "3.0.3",
  129. "webpack-dev-server": "3.1.10"
  130. },
  131. "scripts": {
  132. "start": "node scripts/start.js",
  133. "build": "node scripts/build.js",
  134. "test": "jest",
  135. "format": "prettier --write --list-different 'src/main/js/**/*.{js,ts,tsx,css}'",
  136. "format-check": "prettier --list-different 'src/main/js/**/*.{js,ts,tsx,css}'",
  137. "lint": "eslint --ext js,ts,tsx --quiet src/main/js",
  138. "lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src/main/js",
  139. "ts-check": "tsc --noEmit",
  140. "validate": "yarn lint && yarn ts-check && yarn format-check && yarn test",
  141. "validate-ci": "yarn lint-report && yarn ts-check && yarn format-check && yarn test --coverage",
  142. "precommit": "yarn ts-check && lint-staged"
  143. },
  144. "engines": {
  145. "node": ">=6"
  146. },
  147. "browserslist": [
  148. "last 3 Chrome versions",
  149. "last 3 Firefox versions",
  150. "last 3 Safari versions",
  151. "last 3 Edge versions",
  152. "IE 11"
  153. ],
  154. "jest": {
  155. "coverageDirectory": "<rootDir>/coverage",
  156. "collectCoverageFrom": [
  157. "src/main/js/**/*.{ts,tsx,js}"
  158. ],
  159. "coverageReporters": [
  160. "lcovonly"
  161. ],
  162. "globals": {
  163. "ts-jest": {
  164. "diagnostics": {
  165. "ignoreCodes": [
  166. 151001
  167. ]
  168. }
  169. }
  170. },
  171. "moduleFileExtensions": [
  172. "ts",
  173. "tsx",
  174. "js",
  175. "json"
  176. ],
  177. "moduleNameMapper": {
  178. "^.+\\.(md|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/config/jest/FileStub.js",
  179. "^.+\\.css$": "<rootDir>/config/jest/CSSStub.js"
  180. },
  181. "setupFiles": [
  182. "<rootDir>/config/polyfills.js",
  183. "<rootDir>/config/jest/SetupTestEnvironment.js",
  184. "<rootDir>/config/jest/SetupEnzyme.js"
  185. ],
  186. "snapshotSerializers": [
  187. "enzyme-to-json/serializer"
  188. ],
  189. "testPathIgnorePatterns": [
  190. "<rootDir>/config",
  191. "<rootDir>/node_modules",
  192. "<rootDir>/scripts"
  193. ],
  194. "testRegex": "(/__tests__/.*|\\-test)\\.(ts|tsx|js)$",
  195. "transform": {
  196. "\\.js$": "babel-jest",
  197. "\\.(ts|tsx)$": "ts-jest"
  198. }
  199. },
  200. "prettier": {
  201. "jsxBracketSameLine": true,
  202. "printWidth": 100,
  203. "singleQuote": true
  204. },
  205. "lint-staged": {
  206. "linters": {
  207. "*.{css,json}": [
  208. "prettier --write",
  209. "git add"
  210. ],
  211. "*.{js,ts,tsx}": [
  212. "eslint",
  213. "jest --bail --passWithNoTests --findRelatedTests",
  214. "prettier --write",
  215. "git add"
  216. ]
  217. }
  218. }
  219. }