package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. ],
  46. "snapshotSerializers": [
  47. "enzyme-to-json/serializer"
  48. ]
  49. },
  50. "devDependencies": {
  51. "@types/react": "^16.9.53",
  52. "@typescript-eslint/eslint-plugin": "^4.5.0",
  53. "@typescript-eslint/parser": "^4.5.0",
  54. "@wagtail/stylelint-config-wagtail": "^0.1.1",
  55. "autoprefixer": "^9.8.0",
  56. "babel-eslint": "^10.1.0",
  57. "cssnano": "^4.1.10",
  58. "enzyme": "^3.9.0",
  59. "enzyme-adapter-react-16": "^1.9.1",
  60. "enzyme-to-json": "^3.3.0",
  61. "eslint": "^7.11.0",
  62. "eslint-config-wagtail": "^0.1.1",
  63. "eslint-import-resolver-webpack": "^0.8.1",
  64. "eslint-plugin-import": "^1.8.1",
  65. "eslint-plugin-jsx-a11y": "^1.5.3",
  66. "eslint-plugin-react": "^5.2.2",
  67. "expose-loader": "^1.0.3",
  68. "gulp": "^4.0.2",
  69. "gulp-dart-sass": "^1.0.2",
  70. "gulp-postcss": "^8.0.0",
  71. "gulp-rename": "^1.2.2",
  72. "gulp-size": "^3.0.0",
  73. "gulp-sourcemaps": "~2.6.1",
  74. "gulp-util": "~3.0.8",
  75. "jest": "^26.6.0",
  76. "npm-run-all": "^4.1.5",
  77. "postcss-custom-properties": "^10.0.0",
  78. "react-axe": "^3.1.0",
  79. "react-test-renderer": "^16.13.1",
  80. "redux-mock-store": "^1.3.0",
  81. "stylelint": "^13.5.0",
  82. "ts-jest": "^26.4.1",
  83. "ts-loader": "^8.0.6",
  84. "typescript": "^4.0.3",
  85. "webpack": "^5.11.0",
  86. "webpack-cli": "^3.3.11"
  87. },
  88. "dependencies": {
  89. "core-js": "^2.5.3",
  90. "draft-js": "0.10.5",
  91. "draftail": "^1.2.1",
  92. "element-closest": "^2.0.2",
  93. "focus-trap-react": "^3.1.0",
  94. "postcss-calc": "^7.0.5",
  95. "prop-types": "^15.6.2",
  96. "react": "^16.14.0",
  97. "react-dom": "^16.14.0",
  98. "react-redux": "^7.2.2",
  99. "react-transition-group": "^1.1.3",
  100. "redux": "^4.0.0",
  101. "redux-thunk": "^2.3.0",
  102. "telepath-unpack": "^0.0.3",
  103. "wagtail-comment-frontend": "0.0.6",
  104. "whatwg-fetch": "^2.0.3"
  105. },
  106. "scripts": {
  107. "build": "npm run gulp:prod:build && npm run webpack:prod:build",
  108. "dist": "NODE_ENV=production npm run build",
  109. "watch": "npm-run-all --parallel gulp:dev:watch webpack:dev:watch",
  110. "start": "npm run watch",
  111. "gulp:dev:watch": "gulp watch",
  112. "gulp:prod:build": "gulp build",
  113. "webpack:dev:watch": "webpack --config ./client/webpack.config.js --mode development --progress --watch",
  114. "webpack:prod:build": "webpack --config ./client/webpack.config.js --mode production",
  115. "lint:js": "eslint --report-unused-disable-directives --max-warnings 16 ./client",
  116. "lint:css": "stylelint **/*.scss",
  117. "lint": "npm run lint:js && npm run lint:css",
  118. "test": "npm run test:unit",
  119. "test:unit": "jest",
  120. "test:unit:watch": "jest --watch",
  121. "test:unit:coverage": "jest --coverage"
  122. }
  123. }