2
0

package.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. {
  2. "name": "wagtail",
  3. "version": "1.0.0",
  4. "repository": "https://github.com/wagtail/wagtail",
  5. "private": true,
  6. "engines": {
  7. "node": ">=22"
  8. },
  9. "browserslist": [
  10. "Firefox ESR",
  11. "last 2 Chrome versions",
  12. "last 2 ChromeAndroid versions",
  13. "last 2 Edge versions",
  14. "last 1 Firefox version",
  15. "iOS >= 16",
  16. "Safari >= 15",
  17. "not ie 11"
  18. ],
  19. "jest": {
  20. "moduleFileExtensions": [
  21. "js",
  22. "ts",
  23. "tsx",
  24. "json",
  25. "node"
  26. ],
  27. "moduleNameMapper": {
  28. "jquery": "<rootDir>/wagtail/admin/static_src/wagtailadmin/js/vendor/jquery-3.6.0.min.js"
  29. },
  30. "transform": {
  31. "^.+\\.(js|ts|tsx)$": "ts-jest"
  32. },
  33. "testEnvironment": "jsdom",
  34. "testPathIgnorePatterns": [
  35. "/node_modules/",
  36. "/build/",
  37. "client/tests/integration"
  38. ],
  39. "coveragePathIgnorePatterns": [
  40. "/node_modules/",
  41. "/tests/"
  42. ],
  43. "setupFiles": [
  44. "./client/tests/adapter.js",
  45. "./client/tests/stubs.js",
  46. "./client/tests/mock-fetch.js",
  47. "./client/tests/mock-jquery.js"
  48. ],
  49. "setupFilesAfterEnv": [
  50. "./client/tests/utils.js"
  51. ],
  52. "snapshotSerializers": [
  53. "enzyme-to-json/serializer"
  54. ]
  55. },
  56. "devDependencies": {
  57. "@babel/core": "^7.26.0",
  58. "@babel/preset-env": "^7.26.0",
  59. "@babel/preset-react": "^7.25.9",
  60. "@babel/preset-typescript": "^7.26.0",
  61. "@storybook/addon-controls": "^7.6.14",
  62. "@storybook/addon-docs": "^7.6.14",
  63. "@storybook/react": "^7.6.14",
  64. "@storybook/react-webpack5": "^7.6.14",
  65. "@types/autosize": "^4.0.3",
  66. "@types/draft-js": "^0.10.45",
  67. "@types/jest": "^29.5.14",
  68. "@types/jquery": "^3.5.32",
  69. "@types/mousetrap": "^1.6.15",
  70. "@types/react": "^16.14.21",
  71. "@types/react-dom": "^16.0",
  72. "@types/react-redux": "^7.1.34",
  73. "@typescript-eslint/eslint-plugin": "^6.21.0",
  74. "@typescript-eslint/parser": "^6.21.0",
  75. "@wagtail/eslint-config-wagtail": "^0.4.0",
  76. "@wagtail/stylelint-config-wagtail": "^0.8.0",
  77. "autoprefixer": "^10.4.20",
  78. "babel-loader": "^9.2.1",
  79. "copy-webpack-plugin": "^12.0.2",
  80. "css-loader": "^6.10.0",
  81. "cssnano": "^5.1.15",
  82. "enzyme": "^3.11.0",
  83. "enzyme-adapter-react-16": "^1.15.8",
  84. "enzyme-to-json": "^3.6.2",
  85. "eslint": "^8.56.0",
  86. "eslint-plugin-storybook": "^0.6.15",
  87. "expose-loader": "^5.0.0",
  88. "gettext-extractor": "^3.8.0",
  89. "jest": "^29.7.0",
  90. "jest-environment-jsdom": "^29.7.0",
  91. "mini-css-extract-plugin": "^2.9.2",
  92. "postcss": "^8.4.47",
  93. "postcss-loader": "^8.1.1",
  94. "prettier": "^3.3.3",
  95. "react-test-renderer": "^16.14.0",
  96. "redux-mock-store": "^1.5.5",
  97. "sass": "^1.80.6",
  98. "sass-loader": "^14.1.0",
  99. "storybook": "^7.6.14",
  100. "storybook-django": "^0.5.1",
  101. "stylelint": "^15.11.0",
  102. "tailwindcss": "^3.4.14",
  103. "tailwindcss-vanilla-rtl": "^0.4.0",
  104. "ts-jest": "^29.2.5",
  105. "ts-loader": "^9.5.1",
  106. "typescript": "^5.6.3",
  107. "webpack": "^5.96.1",
  108. "webpack-cli": "^5.1.4"
  109. },
  110. "dependencies": {
  111. "@hotwired/stimulus": "^3.2.2",
  112. "@tippyjs/react": "^4.2.6",
  113. "a11y-dialog": "^8.1.1",
  114. "autosize": "^6.0.1",
  115. "axe-core": "^4.10.2",
  116. "downshift": "^7.6.2",
  117. "draft-js": "^0.10.5",
  118. "draftail": "^2.0.0-rc.6",
  119. "draftjs-filters": "^3.0.1",
  120. "focus-trap-react": "^8.11.3",
  121. "immer": "^9.0.21",
  122. "js-cookie": "^3.0.5",
  123. "mousetrap": "^1.6.5",
  124. "prop-types": "^15.8.1",
  125. "react": "^16.14.0",
  126. "react-dom": "^16.14.0",
  127. "react-redux": "^7.2.2",
  128. "react-transition-group": "^1.1.3",
  129. "redux": "^4.2.1",
  130. "redux-thunk": "^2.4.2",
  131. "reselect": "^4.1.8",
  132. "sortablejs": "^1.15.3",
  133. "telepath-unpack": "^0.0.3",
  134. "tippy.js": "^6.3.7",
  135. "uuid": "^9.0.1"
  136. },
  137. "scripts": {
  138. "start": "webpack --config ./client/webpack.config.js --mode development --progress --watch",
  139. "build": "webpack --config ./client/webpack.config.js --mode production",
  140. "fix:css": "stylelint --fix **/*.scss",
  141. "fix:js": "eslint --ext .js,.ts,.tsx --fix .",
  142. "fix": "npm run fix:css && npm run fix:js",
  143. "format": "prettier --write \"**/?(.)*.{css,scss,js,ts,tsx,json,yaml,yml}\"",
  144. "lint:js": "eslint --ext .js,.ts,.tsx --report-unused-disable-directives .",
  145. "lint:css": "stylelint **/*.scss",
  146. "lint:format": "prettier --check \"**/?(.)*.{css,scss,js,ts,tsx,json,yaml,yml}\"",
  147. "lint:ts": "tsc --noEmit",
  148. "lint": "npm run lint:js && npm run lint:ts && npm run lint:css && npm run lint:format",
  149. "test": "npm run test:unit",
  150. "test:unit": "jest",
  151. "test:unit:watch": "jest --watch",
  152. "test:unit:coverage": "jest --coverage",
  153. "test:integration": "./client/tests/integration/node_modules/.bin/jest --config ./client/tests/integration/jest.config.js",
  154. "storybook": "storybook dev -c client/storybook -p 6006 --no-open --no-version-updates",
  155. "build-storybook": "storybook build -c client/storybook"
  156. }
  157. }