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

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