package.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. "cssnano": "^4.1.10",
  57. "enzyme": "^3.9.0",
  58. "enzyme-adapter-react-16": "^1.9.1",
  59. "enzyme-to-json": "^3.3.0",
  60. "eslint": "^7.11.0",
  61. "eslint-config-wagtail": "^0.1.1",
  62. "eslint-import-resolver-webpack": "^0.8.1",
  63. "eslint-plugin-import": "^1.8.1",
  64. "eslint-plugin-jsx-a11y": "^1.5.3",
  65. "eslint-plugin-react": "^5.2.2",
  66. "expose-loader": "^0.7.5",
  67. "gulp": "^4.0.2",
  68. "gulp-dart-sass": "^1.0.2",
  69. "gulp-postcss": "^8.0.0",
  70. "gulp-rename": "^1.2.2",
  71. "gulp-size": "^3.0.0",
  72. "gulp-sourcemaps": "~2.6.1",
  73. "gulp-util": "~3.0.8",
  74. "jest": "^26.6.0",
  75. "npm-run-all": "^4.1.5",
  76. "react-axe": "^3.1.0",
  77. "react-test-renderer": "^16.13.1",
  78. "redux-mock-store": "^1.3.0",
  79. "stylelint": "^13.5.0",
  80. "ts-jest": "^26.4.1",
  81. "ts-loader": "^8.0.6",
  82. "typescript": "^4.0.3",
  83. "webpack": "^4.44.2",
  84. "webpack-cli": "^3.3.11"
  85. },
  86. "dependencies": {
  87. "core-js": "^2.5.3",
  88. "draft-js": "0.10.5",
  89. "draftail": "^1.2.1",
  90. "element-closest": "^2.0.2",
  91. "focus-trap-react": "^3.1.0",
  92. "prop-types": "^15.6.2",
  93. "react": "^16.4.0",
  94. "react-dom": "^16.4.0",
  95. "react-redux": "^5.0.6",
  96. "react-streamfield": "^0.9.6",
  97. "react-transition-group": "^1.1.3",
  98. "redux": "^4.0.0",
  99. "redux-thunk": "^2.3.0",
  100. "whatwg-fetch": "^2.0.3"
  101. },
  102. "scripts": {
  103. "build": "npm run gulp:prod:build && npm run webpack:prod:build",
  104. "dist": "NODE_ENV=production npm run build",
  105. "watch": "npm-run-all --parallel gulp:dev:watch webpack:dev:watch",
  106. "start": "npm run watch",
  107. "gulp:dev:watch": "gulp watch",
  108. "gulp:prod:build": "gulp build",
  109. "webpack:dev:watch": "webpack --config ./client/webpack.config.js --mode development --progress --watch",
  110. "webpack:prod:build": "webpack --config ./client/webpack.config.js --mode production",
  111. "lint:js": "eslint --max-warnings 16 ./client",
  112. "lint:css": "stylelint **/*.scss",
  113. "lint": "npm run lint:js && npm run lint:css",
  114. "test": "npm run test:unit",
  115. "test:unit": "jest",
  116. "test:unit:watch": "jest --watch",
  117. "test:unit:coverage": "jest --coverage"
  118. }
  119. }