package.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. {
  2. "name": "wagtail",
  3. "version": "1.0.0",
  4. "repository": "https://github.com/wagtail/wagtail",
  5. "private": true,
  6. "engines": {
  7. "node": ">=10.0.0"
  8. },
  9. "browserslist": [
  10. "Firefox ESR",
  11. "ie 11",
  12. "last 2 Chrome versions",
  13. "last 2 ChromeAndroid versions",
  14. "last 2 Edge versions",
  15. "last 1 Firefox version",
  16. "last 2 iOS versions",
  17. "last 2 Safari versions"
  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.5.1.min.js"
  29. },
  30. "transform": {
  31. "^.+\\.(js|ts|tsx)$": "ts-jest"
  32. },
  33. "testPathIgnorePatterns": [
  34. "/node_modules/",
  35. "/build/"
  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.1.1",
  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.0",
  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.5.0",
  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.1",
  110. "postcss-calc": "^7.0.5",
  111. "prop-types": "^15.6.2",
  112. "react": "^16.14.0",
  113. "react-dom": "^16.14.0",
  114. "react-redux": "^7.2.2",
  115. "react-transition-group": "^1.1.3",
  116. "redux": "^4.0.0",
  117. "redux-thunk": "^2.3.0",
  118. "reselect": "^4.0.0",
  119. "telepath-unpack": "^0.0.3",
  120. "url-search-params-polyfill": "^8.1.1",
  121. "uuid": "^8.3.2",
  122. "whatwg-fetch": "^2.0.3"
  123. },
  124. "scripts": {
  125. "build": "npm run gulp:prod:build && npm run webpack:prod:build",
  126. "dist": "NODE_ENV=production npm run build",
  127. "watch": "npm-run-all --parallel gulp:dev:watch webpack:dev:watch",
  128. "start": "npm run watch",
  129. "gulp:dev:watch": "gulp watch",
  130. "gulp:prod:build": "gulp build",
  131. "webpack:dev:watch": "webpack --config ./client/webpack.config.js --mode development --progress --watch",
  132. "webpack:prod:build": "webpack --config ./client/webpack.config.js --mode production",
  133. "lint:js": "eslint --report-unused-disable-directives --max-warnings 16 ./client",
  134. "lint:css": "stylelint **/*.scss",
  135. "lint": "npm run lint:js && npm run lint:css",
  136. "test": "npm run test:unit",
  137. "test:unit": "jest",
  138. "test:unit:watch": "jest --watch",
  139. "test:unit:coverage": "jest --coverage",
  140. "storybook": "start-storybook -c client/.storybook -p 6006",
  141. "build-storybook": "build-storybook -c client/.storybook"
  142. }
  143. }