2
0

package.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. {
  2. "name": "wagtail",
  3. "version": "1.0.0",
  4. "repository": "https://github.com/wagtail/wagtail",
  5. "private": true,
  6. "engines": {
  7. "node": ">=14.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. ],
  18. "jest": {
  19. "moduleFileExtensions": [
  20. "js",
  21. "ts",
  22. "tsx",
  23. "json",
  24. "node"
  25. ],
  26. "moduleNameMapper": {
  27. "jquery": "<rootDir>/wagtail/admin/static_src/wagtailadmin/js/vendor/jquery-3.6.0.min.js"
  28. },
  29. "transform": {
  30. "^.+\\.(js|ts|tsx)$": "ts-jest"
  31. },
  32. "testPathIgnorePatterns": [
  33. "/node_modules/",
  34. "/build/",
  35. "client/tests/integration"
  36. ],
  37. "coveragePathIgnorePatterns": [
  38. "/node_modules/",
  39. "/tests/"
  40. ],
  41. "setupFiles": [
  42. "./client/tests/adapter.js",
  43. "./client/tests/stubs.js",
  44. "./client/tests/mock-fetch.js",
  45. "./client/tests/mock-jquery.js"
  46. ],
  47. "snapshotSerializers": [
  48. "enzyme-to-json/serializer"
  49. ]
  50. },
  51. "devDependencies": {
  52. "@babel/core": "^7.13.16",
  53. "@storybook/addon-actions": "^6.3.0-alpha.14",
  54. "@storybook/addon-essentials": "^6.3.0-alpha.14",
  55. "@storybook/addon-links": "^6.3.0-alpha.14",
  56. "@storybook/builder-webpack5": "^6.3.0-alpha.14",
  57. "@storybook/react": "^6.3.0-alpha.14",
  58. "@types/draft-js": "^0.10.45",
  59. "@types/react": "^16.9.53",
  60. "@types/react-redux": "^7.1.16",
  61. "@types/redux": "^3.6.0",
  62. "@typescript-eslint/eslint-plugin": "^4.5.0",
  63. "@typescript-eslint/parser": "^4.5.0",
  64. "@wagtail/stylelint-config-wagtail": "^0.2",
  65. "autoprefixer": "^9.8.0",
  66. "babel-eslint": "^10.1.0",
  67. "babel-loader": "^8.2.2",
  68. "cssnano": "^4.1.10",
  69. "dotenv-webpack": "^7.0.2",
  70. "enzyme": "^3.9.0",
  71. "enzyme-adapter-react-16": "^1.9.1",
  72. "enzyme-to-json": "^3.3.0",
  73. "eslint": "^7.20.0",
  74. "eslint-config-wagtail": "^0.1.1",
  75. "eslint-import-resolver-webpack": "^0.8.1",
  76. "eslint-plugin-import": "^1.8.1",
  77. "eslint-plugin-jsx-a11y": "^1.5.3",
  78. "eslint-plugin-react": "^5.2.2",
  79. "expose-loader": "^1.0.3",
  80. "gulp": "^4.0.2",
  81. "gulp-dart-sass": "^1.0.2",
  82. "gulp-postcss": "^8.0.0",
  83. "gulp-rename": "^1.2.2",
  84. "gulp-size": "^3.0.0",
  85. "gulp-sourcemaps": "~2.6.1",
  86. "gulp-util": "~3.0.8",
  87. "html-webpack-plugin": "^5.3.1",
  88. "jest": "^26.6.3",
  89. "npm-run-all": "^4.1.5",
  90. "postcss-custom-properties": "^10.0.0",
  91. "react-axe": "^3.1.0",
  92. "react-test-renderer": "^16.13.1",
  93. "redux-mock-store": "^1.3.0",
  94. "stylelint": "^13.13.1",
  95. "ts-jest": "^26.4.1",
  96. "ts-loader": "^9.1.1",
  97. "typescript": "^4.0.3",
  98. "webpack": "^5.35.1",
  99. "webpack-cli": "^3.3.12"
  100. },
  101. "dependencies": {
  102. "core-js": "^2.5.3",
  103. "draft-js": "^0.10.5",
  104. "draftail": "^1.4.1",
  105. "draftjs-filters": "^2.5.0",
  106. "element-closest": "^2.0.2",
  107. "focus-trap-react": "^8.4.2",
  108. "formdata-polyfill": "^3.0.20",
  109. "immer": "^9.0.6",
  110. "js-cookie": "^2.2.1",
  111. "postcss-calc": "^7.0.5",
  112. "prop-types": "^15.6.2",
  113. "react": "^16.14.0",
  114. "react-dom": "^16.14.0",
  115. "react-redux": "^7.2.2",
  116. "react-transition-group": "^1.1.3",
  117. "redux": "^4.0.0",
  118. "redux-thunk": "^2.3.0",
  119. "reselect": "^4.0.0",
  120. "telepath-unpack": "^0.0.3",
  121. "url-search-params-polyfill": "^8.1.1",
  122. "uuid": "^8.3.2",
  123. "whatwg-fetch": "^2.0.3"
  124. },
  125. "scripts": {
  126. "build": "npm run gulp:prod:build && npm run webpack:prod:build",
  127. "dist": "NODE_ENV=production npm run build",
  128. "watch": "npm-run-all --parallel gulp:dev:watch webpack:dev:watch",
  129. "start": "npm run watch",
  130. "gulp:dev:watch": "gulp watch",
  131. "gulp:prod:build": "gulp build",
  132. "webpack:dev:watch": "webpack --config ./client/webpack.config.js --mode development --progress --watch",
  133. "webpack:prod:build": "webpack --config ./client/webpack.config.js --mode production",
  134. "fix:js": "eslint --fix ./",
  135. "lint:js": "eslint --report-unused-disable-directives ./",
  136. "lint:css": "stylelint **/*.scss",
  137. "lint": "npm run lint:js && npm run lint:css",
  138. "test": "npm run test:unit",
  139. "test:unit": "jest",
  140. "test:unit:watch": "jest --watch",
  141. "test:unit:coverage": "jest --coverage",
  142. "test:integration": "./client/tests/integration/node_modules/.bin/jest --config ./client/tests/integration/jest.config.js",
  143. "storybook": "start-storybook -c client/.storybook -p 6006",
  144. "build-storybook": "build-storybook -c client/.storybook"
  145. }
  146. }