package.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. {
  2. "name": "wagtail",
  3. "version": "1.0.0",
  4. "repository": "https://github.com/wagtail/wagtail",
  5. "private": true,
  6. "engines": {
  7. "node": ">=20.0.0"
  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. "last 2 iOS versions",
  16. "last 3 Safari versions",
  17. "iOS >= 16",
  18. "Safari 15",
  19. "not ie 11"
  20. ],
  21. "jest": {
  22. "moduleFileExtensions": [
  23. "js",
  24. "ts",
  25. "tsx",
  26. "json",
  27. "node"
  28. ],
  29. "moduleNameMapper": {
  30. "jquery": "<rootDir>/wagtail/admin/static_src/wagtailadmin/js/vendor/jquery-3.6.0.min.js"
  31. },
  32. "transform": {
  33. "^.+\\.(js|ts|tsx)$": "ts-jest"
  34. },
  35. "testEnvironment": "jsdom",
  36. "testPathIgnorePatterns": [
  37. "/node_modules/",
  38. "/build/",
  39. "client/tests/integration"
  40. ],
  41. "coveragePathIgnorePatterns": [
  42. "/node_modules/",
  43. "/tests/"
  44. ],
  45. "setupFiles": [
  46. "./client/tests/adapter.js",
  47. "./client/tests/stubs.js",
  48. "./client/tests/mock-fetch.js",
  49. "./client/tests/mock-jquery.js"
  50. ],
  51. "setupFilesAfterEnv": [
  52. "./client/tests/utils.js"
  53. ],
  54. "snapshotSerializers": [
  55. "enzyme-to-json/serializer"
  56. ]
  57. },
  58. "devDependencies": {
  59. "@babel/core": "^7.16.7",
  60. "@babel/preset-env": "^7.23.3",
  61. "@babel/preset-react": "^7.23.3",
  62. "@babel/preset-typescript": "^7.23.3",
  63. "@storybook/addon-controls": "^7.5.3",
  64. "@storybook/addon-docs": "^7.5.3",
  65. "@storybook/react": "^7.5.3",
  66. "@storybook/react-webpack5": "^7.5.3",
  67. "@types/autosize": "^4.0.1",
  68. "@types/draft-js": "^0.10.45",
  69. "@types/jest": "^29.5.3",
  70. "@types/jquery": "^3.5.16",
  71. "@types/react": "^16.14.21",
  72. "@types/react-dom": "^16.0",
  73. "@types/react-redux": "^7.1.20",
  74. "@typescript-eslint/eslint-plugin": "^6.2.1",
  75. "@typescript-eslint/parser": "^6.2.1",
  76. "@wagtail/eslint-config-wagtail": "^0.4.0",
  77. "@wagtail/stylelint-config-wagtail": "^0.5.0",
  78. "autoprefixer": "^10.4.2",
  79. "babel-loader": "^8.2.3",
  80. "copy-webpack-plugin": "^10.2.0",
  81. "css-loader": "^6.5.1",
  82. "cssnano": "^5.0.14",
  83. "enzyme": "^3.11.0",
  84. "enzyme-adapter-react-16": "^1.15.7",
  85. "enzyme-to-json": "^3.6.2",
  86. "eslint": "^8.46.0",
  87. "eslint-plugin-storybook": "^0.6.15",
  88. "expose-loader": "^3.1.0",
  89. "gettext-extractor": "^3.5.3",
  90. "jest": "^29.6.2",
  91. "jest-environment-jsdom": "^29.6.2",
  92. "mini-css-extract-plugin": "^2.4.5",
  93. "postcss": "^8.4.31",
  94. "postcss-loader": "^6.2.1",
  95. "prettier": "^3.0.0",
  96. "react-test-renderer": "^16.14.0",
  97. "redux-mock-store": "^1.3.0",
  98. "sass": "^1.45.1",
  99. "sass-loader": "^12.4.0",
  100. "storybook": "^7.5.3",
  101. "storybook-django": "^0.5.1",
  102. "stylelint": "^15.10.0",
  103. "tailwindcss": "^3.1.5",
  104. "tailwindcss-vanilla-rtl": "^0.2.0",
  105. "ts-jest": "^29.1.0",
  106. "ts-loader": "^9.2.6",
  107. "typescript": "^5.2.2",
  108. "webpack": "^5.76.0",
  109. "webpack-cli": "^4.9.1"
  110. },
  111. "dependencies": {
  112. "@hotwired/stimulus": "^3.2.2",
  113. "@tippyjs/react": "^4.2.6",
  114. "a11y-dialog": "^8.0.0",
  115. "autosize": "^6.0.1",
  116. "axe-core": "^4.7.2",
  117. "downshift": "^7.2.0",
  118. "draft-js": "^0.10.5",
  119. "draftail": "^2.0.0-rc.6",
  120. "draftjs-filters": "^3.0.1",
  121. "focus-trap-react": "^8.4.2",
  122. "immer": "^9.0.6",
  123. "js-cookie": "^3.0.5",
  124. "prop-types": "^15.6.2",
  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.0.0",
  130. "redux-thunk": "^2.3.0",
  131. "reselect": "^4.0.0",
  132. "telepath-unpack": "^0.0.3",
  133. "tippy.js": "^6.3.7",
  134. "uuid": "^9.0.0"
  135. },
  136. "scripts": {
  137. "start": "webpack --config ./client/webpack.config.js --mode development --progress --watch",
  138. "build": "webpack --config ./client/webpack.config.js --mode production",
  139. "fix:css": "stylelint --fix **/*.scss",
  140. "fix:js": "eslint --ext .js,.ts,.tsx --fix .",
  141. "fix": "npm run fix:css && npm run fix:js",
  142. "format": "prettier --write \"**/?(.)*.{css,scss,js,ts,tsx,json,yaml,yml}\"",
  143. "lint:js": "eslint --ext .js,.ts,.tsx --report-unused-disable-directives .",
  144. "lint:css": "stylelint **/*.scss",
  145. "lint:format": "prettier --check \"**/?(.)*.{css,scss,js,ts,tsx,json,yaml,yml}\"",
  146. "lint:ts": "tsc --noEmit",
  147. "lint": "npm run lint:js && npm run lint:ts && npm run lint:css && npm run lint:format",
  148. "test": "npm run test:unit",
  149. "test:unit": "jest",
  150. "test:unit:watch": "jest --watch",
  151. "test:unit:coverage": "jest --coverage",
  152. "test:integration": "./client/tests/integration/node_modules/.bin/jest --config ./client/tests/integration/jest.config.js",
  153. "storybook": "storybook dev -c client/storybook -p 6006 --no-open --no-version-updates",
  154. "build-storybook": "storybook build -c client/storybook"
  155. }
  156. }