package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. "babel": {
  20. "presets": [
  21. [
  22. "es2015",
  23. {
  24. "modules": false
  25. }
  26. ],
  27. "react"
  28. ],
  29. "env": {
  30. "test": {
  31. "presets": [
  32. "es2015",
  33. "react"
  34. ]
  35. },
  36. "production": {
  37. "plugins": [
  38. [
  39. "transform-react-remove-prop-types",
  40. {
  41. "mode": "remove",
  42. "removeImport": true,
  43. "ignoreFilenames": [
  44. "node_modules"
  45. ]
  46. }
  47. ]
  48. ]
  49. }
  50. }
  51. },
  52. "jest": {
  53. "testPathIgnorePatterns": [
  54. "/node_modules/",
  55. "/build/"
  56. ],
  57. "coveragePathIgnorePatterns": [
  58. "/node_modules/",
  59. "/tests/"
  60. ],
  61. "setupFiles": [
  62. "./client/tests/adapter.js",
  63. "./client/tests/stubs.js",
  64. "./client/tests/mock-fetch.js"
  65. ],
  66. "snapshotSerializers": [
  67. "enzyme-to-json/serializer"
  68. ]
  69. },
  70. "devDependencies": {
  71. "@wagtail/stylelint-config-wagtail": "^0.1.0",
  72. "babel-core": "^6.26.3",
  73. "babel-jest": "^23.6.0",
  74. "babel-loader": "^7.1.2",
  75. "babel-plugin-transform-react-remove-prop-types": "^0.4.12",
  76. "babel-preset-es2015": "^6.24.1",
  77. "babel-preset-react": "^6.24.1",
  78. "enzyme": "^3.9.0",
  79. "enzyme-adapter-react-16": "^1.9.1",
  80. "enzyme-to-json": "^3.3.0",
  81. "eslint": "^4.18.2",
  82. "eslint-config-wagtail": "0.1.1",
  83. "eslint-import-resolver-webpack": "^0.8.1",
  84. "eslint-plugin-import": "^1.8.1",
  85. "eslint-plugin-jsx-a11y": "^1.5.3",
  86. "eslint-plugin-react": "^5.2.2",
  87. "expose-loader": "^0.7.4",
  88. "gulp": "^4.0.0",
  89. "gulp-autoprefixer": "^7.0.1",
  90. "gulp-cssnano": "^2.1.3",
  91. "gulp-dart-sass": "^1.0.2",
  92. "gulp-rename": "^1.2.2",
  93. "gulp-size": "^3.0.0",
  94. "gulp-sourcemaps": "~2.6.1",
  95. "gulp-util": "~3.0.8",
  96. "jest": "^23.6.0",
  97. "npm-run-all": "^4.1.5",
  98. "react-axe": "^3.1.0",
  99. "react-test-renderer": "^16.2.0",
  100. "redux-mock-store": "^1.3.0",
  101. "stylelint": "^13.5.0",
  102. "webpack": "^3.10.0"
  103. },
  104. "dependencies": {
  105. "core-js": "^2.5.3",
  106. "draft-js": "0.10.5",
  107. "draftail": "^1.2.1",
  108. "element-closest": "^2.0.2",
  109. "focus-trap-react": "^3.1.0",
  110. "prop-types": "^15.6.2",
  111. "react": "^16.4.0",
  112. "react-dom": "^16.4.0",
  113. "react-redux": "^5.0.6",
  114. "react-streamfield": "^0.9.6",
  115. "react-transition-group": "^1.1.3",
  116. "redux": "^4.0.0",
  117. "redux-thunk": "^2.3.0",
  118. "whatwg-fetch": "^2.0.3"
  119. },
  120. "scripts": {
  121. "build": "npm run gulp:prod:build && npm run webpack:prod:build",
  122. "dist": "NODE_ENV=production npm run build",
  123. "watch": "npm-run-all --parallel gulp:dev:watch webpack:dev:watch",
  124. "start": "npm run watch",
  125. "gulp:dev:watch": "gulp watch",
  126. "gulp:prod:build": "gulp build",
  127. "webpack:dev:watch": "webpack --config ./client/webpack/dev.config.js",
  128. "webpack:prod:build": "webpack --config ./client/webpack/prod.config.js",
  129. "lint:js": "eslint --max-warnings 16 ./client",
  130. "lint:css": "stylelint **/*.scss",
  131. "lint": "npm run lint:js && npm run lint:css",
  132. "test": "npm run test:unit",
  133. "test:unit": "jest",
  134. "test:unit:watch": "jest --watch",
  135. "test:unit:coverage": "jest --coverage"
  136. }
  137. }