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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {
  2. "name": "sonar-docs",
  3. "version": "0.0.0",
  4. "license": "LGPL-3.0",
  5. "private": true,
  6. "dependencies": {
  7. "@andrew-codes/gatsby-plugin-elasticlunr-search": "1.0.4",
  8. "classnames": "2.2.6",
  9. "gatsby": "2.19.49",
  10. "gatsby-plugin-layout": "1.1.24",
  11. "gatsby-plugin-polyfill-io": "1.1.0",
  12. "gatsby-plugin-react-helmet": "3.1.24",
  13. "gatsby-plugin-typescript": "2.2.5",
  14. "gatsby-plugin-typography": "2.3.25",
  15. "gatsby-remark-custom-blocks": "2.1.27",
  16. "gatsby-source-filesystem": "2.1.57",
  17. "gatsby-transformer-remark": "2.6.59",
  18. "hast-util-select": "4.0.0",
  19. "lodash": "4.17.21",
  20. "lunr": "2.3.8",
  21. "react": "16.13.0",
  22. "react-dom": "16.13.0",
  23. "react-helmet": "5.2.1",
  24. "react-typography": "0.16.19",
  25. "rehype-react": "6.1.0",
  26. "sonar-ui-common": "../sonar-ui-common/build/dist",
  27. "typography": "0.16.19"
  28. },
  29. "devDependencies": {
  30. "@types/classnames": "2.2.7",
  31. "@types/enzyme": "3.10.5",
  32. "@types/jest": "25.1.4",
  33. "@types/lodash": "4.14.149",
  34. "@types/lunr": "2.3.2",
  35. "@types/react": "16.8.23",
  36. "@types/react-dom": "16.8.4",
  37. "@types/react-helmet": "5.0.15",
  38. "@types/rehype-react": "4.0.0",
  39. "@typescript-eslint/eslint-plugin": "4.13.0",
  40. "@typescript-eslint/parser": "4.13.0",
  41. "babel-jest": "25.1.0",
  42. "enzyme": "3.11.0",
  43. "enzyme-adapter-react-16": "1.15.2",
  44. "enzyme-to-json": "3.4.4",
  45. "eslint": "7.17.0",
  46. "eslint-config-sonarqube": "1.0.0",
  47. "eslint-plugin-import": "2.22.1",
  48. "eslint-plugin-jest": "24.1.0",
  49. "eslint-plugin-jsx-a11y": "6.4.0",
  50. "eslint-plugin-promise": "4.2.1",
  51. "eslint-plugin-react": "7.22.0",
  52. "eslint-plugin-react-hooks": "4.2.0",
  53. "eslint-plugin-sonarjs": "0.5.0",
  54. "fs-extra": "7.0.1",
  55. "glob-promise": "3.4.0",
  56. "graphql-code-generator": "0.5.2",
  57. "jest": "25.1.0",
  58. "jest-fetch-mock": "2.1.2",
  59. "jest-junit": "12.0.0",
  60. "prettier": "1.19.1",
  61. "react-test-renderer": "16.8.5",
  62. "remark": "11.0.2",
  63. "ts-jest": "25.2.1",
  64. "typescript": "4.1.3",
  65. "unist-util-visit": "2.0.2"
  66. },
  67. "scripts": {
  68. "build": "gatsby clean && gatsby build --prefix-paths",
  69. "develop": "gatsby develop",
  70. "graphql-types": "gql-gen --url http://localhost:8000/___graphql --template typescript --out ./src/@types/graphql-types.d.ts",
  71. "test": "jest",
  72. "format": "prettier --write --list-different \"src/**/*.{js,ts,tsx,css}\"",
  73. "format-check": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"",
  74. "lint": "eslint --ext js,ts,tsx --quiet src",
  75. "lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src",
  76. "ts-check": "tsc --noEmit",
  77. "validate": "yarn lint && yarn ts-check && yarn format-check && yarn test",
  78. "validate-ci": "yarn lint-report && yarn test --coverage --ci --reporters=default --reporters=jest-junit",
  79. "check-ci": "yarn ts-check && yarn format-check"
  80. },
  81. "prettier": {
  82. "jsxBracketSameLine": true,
  83. "printWidth": 100,
  84. "singleQuote": true
  85. },
  86. "jest": {
  87. "moduleFileExtensions": [
  88. "ts",
  89. "tsx",
  90. "js",
  91. "json"
  92. ],
  93. "moduleNameMapper": {
  94. "^.+\\.(hbs|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/config/jest/FileStub.js",
  95. "^.+\\.css$": "<rootDir>/config/jest/CSSStub.js"
  96. },
  97. "setupFiles": [
  98. "<rootDir>/config/jest/SetupEnzyme.js",
  99. "<rootDir>/config/jest/SetupJest.ts"
  100. ],
  101. "snapshotSerializers": [
  102. "enzyme-to-json/serializer"
  103. ],
  104. "testPathIgnorePatterns": [
  105. "<rootDir>/node_modules",
  106. "<rootDir>/config",
  107. "<rootDir>/.cache"
  108. ],
  109. "testRegex": "(/__tests__/.*|\\-test)\\.(ts|tsx|js)$",
  110. "transform": {
  111. "\\.js$": "babel-jest",
  112. "\\.(ts|tsx)$": "ts-jest"
  113. }
  114. },
  115. "jest-junit": {
  116. "outputDirectory": "build/test-results/test-jest",
  117. "outputName": "junit.xml",
  118. "ancestorSeparator": " > ",
  119. "suiteNameTemplate": "{filename}",
  120. "classNameTemplate": "{classname}",
  121. "titleTemplate": "{title}"
  122. }
  123. }