composer.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {
  2. "name": "drupal/recommended-project",
  3. "description": "Project template for Drupal 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": "^2.0",
  19. "drupal/core-composer-scaffold": "^10.1",
  20. "drupal/core-project-message": "^10.1",
  21. "drupal/core-recommended": "^10.1",
  22. "wikimedia/composer-merge-plugin": "^2.1"
  23. },
  24. "conflict": {
  25. "drupal/drupal": "*"
  26. },
  27. "minimum-stability": "stable",
  28. "prefer-stable": true,
  29. "config": {
  30. "allow-plugins": {
  31. "composer/installers": true,
  32. "drupal/core-composer-scaffold": true,
  33. "drupal/core-project-message": true,
  34. "phpstan/extension-installer": true,
  35. "dealerdirect/phpcodesniffer-composer-installer": true,
  36. "wikimedia/composer-merge-plugin": true,
  37. "cweagans/composer-patches": true
  38. },
  39. "sort-packages": true
  40. },
  41. "extra": {
  42. "drupal-scaffold": {
  43. "locations": {
  44. "web-root": "web/"
  45. }
  46. },
  47. "installer-paths": {
  48. "web/core": [
  49. "type:drupal-core"
  50. ],
  51. "web/libraries/{$name}": [
  52. "type:drupal-library"
  53. ],
  54. "web/modules/contrib/{$name}": [
  55. "type:drupal-module"
  56. ],
  57. "web/profiles/contrib/{$name}": [
  58. "type:drupal-profile"
  59. ],
  60. "web/themes/contrib/{$name}": [
  61. "type:drupal-theme"
  62. ],
  63. "drush/Commands/contrib/{$name}": [
  64. "type:drupal-drush"
  65. ],
  66. "web/modules/custom/{$name}": [
  67. "type:drupal-custom-module"
  68. ],
  69. "web/profiles/custom/{$name}": [
  70. "type:drupal-custom-profile"
  71. ],
  72. "web/themes/custom/{$name}": [
  73. "type:drupal-custom-theme"
  74. ]
  75. },
  76. "drupal-core-project-message": {
  77. "include-keys": [
  78. "homepage",
  79. "support"
  80. ],
  81. "post-create-project-cmd-message": [
  82. "<bg=blue;fg=white> </>",
  83. "<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>",
  84. "<bg=blue;fg=white> from the drupal/recommended-project template! </>",
  85. "<bg=blue;fg=white> </>",
  86. "",
  87. "<bg=yellow;fg=black>Next steps</>:",
  88. " * Install the site: https://www.drupal.org/docs/installing-drupal",
  89. " * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
  90. " * Get support: https://www.drupal.org/support",
  91. " * Get involved with the Drupal community:",
  92. " https://www.drupal.org/getting-involved",
  93. " * Remove the plugin that prints this message:",
  94. " composer remove drupal/core-project-message"
  95. ]
  96. },
  97. "merge-plugin": {
  98. "include": [
  99. "web/profiles/drupal-starterkit-profile/composer.json"
  100. ],
  101. "recurse": true,
  102. "replace": false,
  103. "merge-extra": true
  104. }
  105. }
  106. }