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.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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. "classnames": "2.2.6",
  9. "clipboard": "2.0.1",
  10. "core-js": "3.0.0",
  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.7.2",
  27. "react": "16.8.5",
  28. "react-countup": "4.1.1",
  29. "react-day-picker": "7.3.0",
  30. "react-dom": "16.8.5",
  31. "react-draggable": "3.2.1",
  32. "react-ga": "2.5.7",
  33. "react-helmet": "5.2.0",
  34. "react-intl": "2.8.0",
  35. "react-modal": "3.8.1",
  36. "react-redux": "5.1.1",
  37. "react-router": "3.2.1",
  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. "regenerator-runtime": "0.13.2",
  44. "remark-custom-blocks": "2.3.0",
  45. "remark-slug": "5.1.0",
  46. "remark-toc": "5.0.0",
  47. "unist-util-visit": "1.4.0",
  48. "valid-url": "1.0.9",
  49. "whatwg-fetch": "2.0.4"
  50. },
  51. "devDependencies": {
  52. "@babel/core": "7.4.0",
  53. "@babel/plugin-proposal-class-properties": "7.4.0",
  54. "@babel/plugin-proposal-object-rest-spread": "7.4.0",
  55. "@babel/plugin-syntax-dynamic-import": "7.2.0",
  56. "@babel/plugin-transform-react-constant-elements": "7.2.0",
  57. "@babel/plugin-transform-react-jsx-self": "7.2.0",
  58. "@babel/plugin-transform-react-jsx-source": "7.2.0",
  59. "@babel/preset-env": "7.4.2",
  60. "@babel/preset-react": "7.0.0",
  61. "@types/classnames": "2.2.6",
  62. "@types/clipboard": "2.0.1",
  63. "@types/d3-array": "1.2.4",
  64. "@types/d3-hierarchy": "1.1.4",
  65. "@types/d3-scale": "2.0.2",
  66. "@types/d3-selection": "1.3.2",
  67. "@types/d3-shape": "1.2.4",
  68. "@types/d3-zoom": "1.7.2",
  69. "@types/enzyme": "3.9.1",
  70. "@types/jest": "24.0.11",
  71. "@types/keymaster": "1.6.28",
  72. "@types/lodash": "4.14.123",
  73. "@types/prop-types": "15.7.0",
  74. "@types/react": "16.8.8",
  75. "@types/react-dom": "16.8.3",
  76. "@types/react-helmet": "5.0.8",
  77. "@types/react-intl": "2.3.17",
  78. "@types/react-modal": "3.8.1",
  79. "@types/react-redux": "6.0.6",
  80. "@types/react-router": "3.0.20",
  81. "@types/react-select": "1.2.6",
  82. "@types/react-virtualized": "9.21.0",
  83. "@types/valid-url": "1.0.2",
  84. "@typescript-eslint/parser": "1.5.0",
  85. "autoprefixer": "9.5.0",
  86. "babel-core": "7.0.0-bridge.0",
  87. "babel-jest": "24.5.0",
  88. "babel-loader": "8.0.5",
  89. "babel-plugin-dynamic-import-node": "2.2.0",
  90. "babel-plugin-lodash": "3.3.4",
  91. "chalk": "2.4.1",
  92. "clean-webpack-plugin": "2.0.1",
  93. "copy-webpack-plugin": "5.0.1",
  94. "css-loader": "1.0.1",
  95. "enzyme": "3.9.0",
  96. "enzyme-adapter-react-16": "1.10.0",
  97. "enzyme-to-json": "3.3.5",
  98. "escape-string-regexp": "1.0.5",
  99. "eslint": "5.15.3",
  100. "eslint-config-sonarqube": "0.3.0",
  101. "eslint-plugin-import": "2.16.0",
  102. "eslint-plugin-jsx-a11y": "6.2.1",
  103. "eslint-plugin-promise": "4.0.1",
  104. "eslint-plugin-react": "7.12.4",
  105. "eslint-plugin-sonarjs": "0.3.0",
  106. "expose-loader": "0.7.5",
  107. "glob": "7.1.3",
  108. "glob-promise": "3.4.0",
  109. "html-webpack-plugin": "3.2.0",
  110. "jest": "24.5.0",
  111. "lint-staged": "7.3.0",
  112. "lodash-webpack-plugin": "0.11.5",
  113. "mini-css-extract-plugin": "0.5.0",
  114. "postcss-calc": "7.0.1",
  115. "postcss-custom-properties": "8.0.9",
  116. "postcss-loader": "3.0.0",
  117. "prettier": "1.16.4",
  118. "raw-loader": "2.0.0",
  119. "react-dev-utils": "5.0.1",
  120. "react-error-overlay": "1.0.7",
  121. "react-test-renderer": "16.8.5",
  122. "remark": "9.0.0",
  123. "remark-react": "4.0.3",
  124. "style-loader": "0.23.1",
  125. "ts-jest": "24.0.0",
  126. "ts-loader": "5.3.3",
  127. "typescript": "3.3.3333",
  128. "webpack": "4.29.6",
  129. "webpack-bundle-analyzer": "3.1.0",
  130. "webpack-dev-server": "3.2.1"
  131. },
  132. "scripts": {
  133. "start": "node scripts/start.js",
  134. "build": "node scripts/build.js",
  135. "build-release": "node scripts/build.js release",
  136. "test": "jest",
  137. "format": "prettier --write --list-different 'src/main/js/**/*.{js,ts,tsx,css}'",
  138. "format-check": "prettier --list-different 'src/main/js/**/*.{js,ts,tsx,css}'",
  139. "lint": "eslint --ext js,ts,tsx --quiet src/main/js",
  140. "lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src/main/js",
  141. "ts-check": "tsc --noEmit",
  142. "validate": "yarn lint && yarn ts-check && yarn format-check && yarn test",
  143. "validate-ci": "yarn lint-report && yarn ts-check && yarn format-check && yarn test --coverage",
  144. "precommit": "yarn ts-check && lint-staged"
  145. },
  146. "engines": {
  147. "node": ">=8"
  148. },
  149. "browserslist": [
  150. "last 3 Chrome versions",
  151. "last 3 Firefox versions",
  152. "last 3 Safari versions",
  153. "last 3 Edge versions",
  154. "IE 11"
  155. ],
  156. "jest": {
  157. "coverageDirectory": "<rootDir>/coverage",
  158. "collectCoverageFrom": [
  159. "src/main/js/**/*.{ts,tsx,js}"
  160. ],
  161. "coverageReporters": [
  162. "lcovonly",
  163. "text"
  164. ],
  165. "globals": {
  166. "ts-jest": {
  167. "diagnostics": {
  168. "ignoreCodes": [
  169. 151001
  170. ]
  171. }
  172. }
  173. },
  174. "moduleFileExtensions": [
  175. "ts",
  176. "tsx",
  177. "js",
  178. "json"
  179. ],
  180. "moduleNameMapper": {
  181. "^.+\\.(md|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/config/jest/FileStub.js",
  182. "^.+\\.css$": "<rootDir>/config/jest/CSSStub.js"
  183. },
  184. "setupFiles": [
  185. "<rootDir>/config/polyfills.js",
  186. "<rootDir>/config/jest/SetupTestEnvironment.js",
  187. "<rootDir>/config/jest/SetupEnzyme.js"
  188. ],
  189. "snapshotSerializers": [
  190. "enzyme-to-json/serializer"
  191. ],
  192. "testPathIgnorePatterns": [
  193. "<rootDir>/config",
  194. "<rootDir>/node_modules",
  195. "<rootDir>/scripts"
  196. ],
  197. "testRegex": "(/__tests__/.*|\\-test)\\.(ts|tsx|js)$",
  198. "transform": {
  199. "\\.js$": "babel-jest",
  200. "\\.(ts|tsx)$": "ts-jest"
  201. }
  202. },
  203. "prettier": {
  204. "jsxBracketSameLine": true,
  205. "printWidth": 100,
  206. "singleQuote": true
  207. },
  208. "lint-staged": {
  209. "linters": {
  210. "*.{css,json}": [
  211. "prettier --write",
  212. "git add"
  213. ],
  214. "*.{js,ts,tsx}": [
  215. "eslint",
  216. "jest --bail --passWithNoTests --findRelatedTests",
  217. "prettier --write",
  218. "git add"
  219. ]
  220. }
  221. }
  222. }