package.json 3.2 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. "babel": {
  10. "presets": [
  11. [
  12. "es2015",
  13. {
  14. "modules": false
  15. }
  16. ],
  17. "react"
  18. ],
  19. "env": {
  20. "test": {
  21. "presets": [
  22. "es2015",
  23. "react"
  24. ]
  25. },
  26. "production": {
  27. "plugins": [
  28. [
  29. "transform-react-remove-prop-types",
  30. {
  31. "mode": "remove",
  32. "removeImport": true,
  33. "ignoreFilenames": [
  34. "node_modules"
  35. ]
  36. }
  37. ]
  38. ]
  39. }
  40. }
  41. },
  42. "jest": {
  43. "testPathIgnorePatterns": [
  44. "/node_modules/",
  45. "/build/"
  46. ],
  47. "setupFiles": [
  48. "./client/tests/adapter.js",
  49. "./client/tests/stubs.js",
  50. "./client/tests/mock-fetch.js"
  51. ],
  52. "snapshotSerializers": [
  53. "enzyme-to-json/serializer"
  54. ]
  55. },
  56. "devDependencies": {
  57. "@wagtail/stylelint-config-wagtail": "^0.1.0",
  58. "babel-core": "^6.26.3",
  59. "babel-jest": "^22.0.3",
  60. "babel-loader": "^7.1.2",
  61. "babel-plugin-transform-react-remove-prop-types": "^0.4.12",
  62. "babel-preset-es2015": "^6.24.1",
  63. "babel-preset-react": "^6.24.1",
  64. "enzyme": "^3.9.0",
  65. "enzyme-adapter-react-16": "^1.9.1",
  66. "enzyme-to-json": "^3.3.0",
  67. "eslint": "^4.18.2",
  68. "eslint-config-wagtail": "0.1.1",
  69. "eslint-import-resolver-webpack": "^0.8.1",
  70. "eslint-plugin-import": "^1.8.1",
  71. "eslint-plugin-jsx-a11y": "^1.5.3",
  72. "eslint-plugin-react": "^5.2.2",
  73. "expose-loader": "^0.7.4",
  74. "gulp": "^4.0.0",
  75. "gulp-autoprefixer": "~4.0.0",
  76. "gulp-cssnano": "^2.1.2",
  77. "gulp-rename": "^1.2.2",
  78. "gulp-sass": "^4.0.1",
  79. "gulp-size": "^2.1.0",
  80. "gulp-sourcemaps": "~2.6.1",
  81. "gulp-util": "~3.0.8",
  82. "jest": "^22.0.3",
  83. "npm-run-all": "^4.1.5",
  84. "react-axe": "^3.1.0",
  85. "react-test-renderer": "^16.2.0",
  86. "redux-mock-store": "^1.3.0",
  87. "stylelint": "^10.0.1",
  88. "webpack": "^3.10.0"
  89. },
  90. "dependencies": {
  91. "core-js": "^2.5.3",
  92. "draft-js": "0.10.5",
  93. "draftail": "^1.2.1",
  94. "element-closest": "^2.0.2",
  95. "focus-trap-react": "^3.1.0",
  96. "prop-types": "^15.6.2",
  97. "react": "^16.4.0",
  98. "react-dom": "^16.4.0",
  99. "react-redux": "^5.0.6",
  100. "react-streamfield": "^0.9.5",
  101. "react-transition-group": "^1.1.3",
  102. "redux": "^4.0.0",
  103. "redux-thunk": "^2.3.0",
  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/dev.config.js",
  114. "webpack:prod:build": "webpack --config ./client/webpack/prod.config.js",
  115. "lint:js": "eslint --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. }