composer.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {
  2. "name": "drupal/recommended-project",
  3. "description": "Project template for Drupal 9 projects with a relocated document root",
  4. "type": "project",
  5. "license": "GPL-2.0-or-later",
  6. "homepage": "https://www.drupal.org/project/drupal",
  7. "support": {
  8. "docs": "https://www.drupal.org/docs/user_guide/en/index.html",
  9. "chat": "https://www.drupal.org/node/314178"
  10. },
  11. "repositories": [
  12. {
  13. "type": "composer",
  14. "url": "https://packages.drupal.org/8"
  15. }
  16. ],
  17. "require": {
  18. "composer/installers": "^1.9",
  19. "drupal/amswap": "^3.1",
  20. "drupal/core-composer-scaffold": "^9.4",
  21. "drupal/core-project-message": "^9.4",
  22. "drupal/core-recommended": "^9.4",
  23. "drupal/graphql": "4.x-dev@dev",
  24. "drupal/paragraphs": "^1.15",
  25. "drupal/structure_sync": "^2.0",
  26. "drupal/typed_data": "1.x-dev@dev",
  27. "wikimedia/composer-merge-plugin": "^2.0"
  28. },
  29. "conflict": {
  30. "drupal/drupal": "*"
  31. },
  32. "minimum-stability": "stable",
  33. "prefer-stable": true,
  34. "config": {
  35. "allow-plugins": {
  36. "composer/installers": true,
  37. "drupal/core-composer-scaffold": true,
  38. "drupal/core-project-message": true,
  39. "dealerdirect/phpcodesniffer-composer-installer": true,
  40. "wikimedia/composer-merge-plugin": true,
  41. "cweagans/composer-patches": true,
  42. "drupal/console-extend-plugin": true
  43. },
  44. "sort-packages": true
  45. },
  46. "extra": {
  47. "drupal-scaffold": {
  48. "locations": {
  49. "web-root": "web/"
  50. }
  51. },
  52. "installer-paths": {
  53. "web/core": [
  54. "type:drupal-core"
  55. ],
  56. "web/libraries/{$name}": [
  57. "type:drupal-library"
  58. ],
  59. "web/modules/contrib/{$name}": [
  60. "type:drupal-module"
  61. ],
  62. "web/profiles/contrib/{$name}": [
  63. "type:drupal-profile"
  64. ],
  65. "web/themes/contrib/{$name}": [
  66. "type:drupal-theme"
  67. ],
  68. "drush/Commands/contrib/{$name}": [
  69. "type:drupal-drush"
  70. ],
  71. "web/modules/custom/{$name}": [
  72. "type:drupal-custom-module"
  73. ],
  74. "web/profiles/custom/{$name}": [
  75. "type:drupal-custom-profile"
  76. ],
  77. "web/themes/custom/{$name}": [
  78. "type:drupal-custom-theme"
  79. ]
  80. },
  81. "drupal-core-project-message": {
  82. "include-keys": [
  83. "homepage",
  84. "support"
  85. ],
  86. "post-create-project-cmd-message": [
  87. "<bg=blue;fg=white> </>",
  88. "<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>",
  89. "<bg=blue;fg=white> from the drupal/recommended-project template! </>",
  90. "<bg=blue;fg=white> </>",
  91. "",
  92. "<bg=yellow;fg=black>Next steps</>:",
  93. " * Install the site: https://www.drupal.org/docs/8/install",
  94. " * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
  95. " * Get support: https://www.drupal.org/support",
  96. " * Get involved with the Drupal community:",
  97. " https://www.drupal.org/getting-involved",
  98. " * Remove the plugin that prints this message:",
  99. " composer remove drupal/core-project-message"
  100. ]
  101. },
  102. "merge-plugin": {
  103. "include": [
  104. "web/profiles/d8-starterkit-profile/composer.json"
  105. ],
  106. "recurse": true,
  107. "replace": false,
  108. "merge-extra": true
  109. },
  110. "patches": {
  111. "drupal/paragraphs": {
  112. "Skip saving empty paragraphs for certain types https://www.drupal.org/project/paragraphs/issues/2877695" : "https://www.drupal.org/files/issues/2021-03-31/2877695-35.patch"
  113. },
  114. "drupal/graphql": {
  115. "invalid translation language https://github.com/drupal-graphql/graphql/pull/1176": "./patches/graphql-fix-invalid-translation-language-dev.patch"
  116. }
  117. }
  118. }
  119. }