package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {
  2. "private": true,
  3. "scripts": {
  4. "build": "webpack --mode=production",
  5. "build:watch": "webpack --mode=production --watch",
  6. "debug": "webpack --mode=none",
  7. "debug:watch": "webpack --mode=development --watch",
  8. "lint": "eslint --ignore-pattern node_modules --ignore-pattern dist --ext .js --ext .jsx --ext tsx --ext ts . --quiet --cache",
  9. "fix": "eslint --ignore-pattern node_modules --ignore-pattern dist --ext .js --ext .jsx --ext tsx --ext ts . --quiet --fix --cache",
  10. "test": "jest --forceExit --detectOpenHandles --verbose",
  11. "test:watch": "jest --watch",
  12. "test-ci": "jest --forceExit --detectOpenHandles --maxWorkers=2",
  13. "check-types": "tsc"
  14. },
  15. "devDependencies": {
  16. "@babel/cli": "7.10.4",
  17. "@babel/core": "7.10.4",
  18. "@babel/plugin-proposal-class-properties": "7.10.4",
  19. "@babel/plugin-proposal-object-rest-spread": "7.10.4",
  20. "@babel/plugin-proposal-optional-chaining": "7.10.4",
  21. "@babel/plugin-syntax-dynamic-import": "7.8.3",
  22. "@babel/polyfill": "7.10.4",
  23. "@babel/preset-env": "7.10.4",
  24. "@babel/preset-react": "7.10.4",
  25. "@babel/preset-typescript": "7.10.4",
  26. "@babel/runtime": "7.10.4",
  27. "@emotion/babel-preset-css-prop": "10.0.27",
  28. "@emotion/core": "10.0.28",
  29. "@types/enzyme": "3.10.5",
  30. "@types/jest": "26.0.4",
  31. "@types/node": "14.0.20",
  32. "@types/react": "16.9.41",
  33. "@types/react-dom": "16.9.8",
  34. "@types/react-intl": "3.0.0",
  35. "@types/react-redux": "7.1.9",
  36. "@types/react-router-dom": "5.1.5",
  37. "@types/react-transition-group": "4.4.0",
  38. "@typescript-eslint/eslint-plugin": "3.6.0",
  39. "@typescript-eslint/parser": "3.6.0",
  40. "babel-eslint": "10.1.0",
  41. "babel-jest": "26.1.0",
  42. "babel-loader": "8.1.0",
  43. "babel-plugin-typescript-to-proptypes": "1.3.2",
  44. "css-loader": "3.6.0",
  45. "enzyme": "3.11.0",
  46. "enzyme-adapter-react-16": "1.15.2",
  47. "enzyme-to-json": "3.5.0",
  48. "eslint": "7.4.0",
  49. "eslint-import-resolver-webpack": "0.12.2",
  50. "eslint-plugin-import": "2.22.0",
  51. "eslint-plugin-react": "7.20.3",
  52. "eslint-plugin-react-hooks": "4.0.6",
  53. "file-loader": "6.0.0",
  54. "identity-obj-proxy": "3.0.0",
  55. "jest": "26.1.0",
  56. "jest-canvas-mock": "2.2.0",
  57. "jest-junit": "11.0.1",
  58. "mattermost-webapp": "github:mattermost/mattermost-webapp#23f5f93d9f12a7e2b5623e5cee6814366abd9a0f",
  59. "node-sass": "4.14.1",
  60. "sass-loader": "9.0.2",
  61. "style-loader": "1.2.1",
  62. "webpack": "4.43.0",
  63. "webpack-cli": "3.3.12"
  64. },
  65. "dependencies": {
  66. "core-js": "3.6.5",
  67. "mattermost-redux": "5.27.0",
  68. "react": "16.13.1",
  69. "react-redux": "7.2.0",
  70. "redux": "4.0.5",
  71. "typescript": "3.9.6"
  72. },
  73. "jest": {
  74. "snapshotSerializers": [
  75. "<rootDir>/node_modules/enzyme-to-json/serializer"
  76. ],
  77. "testPathIgnorePatterns": [
  78. "/node_modules/",
  79. "/non_npm_dependencies/"
  80. ],
  81. "clearMocks": true,
  82. "collectCoverageFrom": [
  83. "src/**/*.{js,jsx}"
  84. ],
  85. "coverageReporters": [
  86. "lcov",
  87. "text-summary"
  88. ],
  89. "moduleNameMapper": {
  90. "^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "identity-obj-proxy",
  91. "^.+\\.(css|less|scss)$": "identity-obj-proxy",
  92. "^.*i18n.*\\.(json)$": "<rootDir>/tests/i18n_mock.json",
  93. "^bundle-loader\\?lazy\\!(.*)$": "$1"
  94. },
  95. "moduleDirectories": [
  96. "",
  97. "node_modules",
  98. "non_npm_dependencies"
  99. ],
  100. "reporters": [
  101. "default",
  102. "jest-junit"
  103. ],
  104. "transformIgnorePatterns": [
  105. "node_modules/(?!react-native|react-router|mattermost-webapp)"
  106. ],
  107. "setupFiles": [
  108. "jest-canvas-mock"
  109. ],
  110. "setupFilesAfterEnv": [
  111. "<rootDir>/tests/setup.tsx"
  112. ],
  113. "testURL": "http://localhost:8065"
  114. }
  115. }