composer.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "name": "drupal/drupal",
  3. "description": "Drupal is an open source content management platform powering millions of websites and applications.",
  4. "type": "project",
  5. "license": "GPL-2.0+",
  6. "require": {
  7. "composer/installers": "^1.0.24",
  8. "wikimedia/composer-merge-plugin": "^1.4",
  9. "drush/drush": "^9.1"
  10. },
  11. "replace": {
  12. "drupal/core": "^8.4"
  13. },
  14. "minimum-stability": "dev",
  15. "prefer-stable": true,
  16. "config": {
  17. "preferred-install": "dist",
  18. "autoloader-suffix": "Drupal8"
  19. },
  20. "extra": {
  21. "_readme": [
  22. "By default Drupal loads the autoloader from ./vendor/autoload.php.",
  23. "To change the autoloader you can edit ./autoload.php.",
  24. "This file specifies the packages.drupal.org repository.",
  25. "You can read more about this composer repository at:",
  26. "https://www.drupal.org/node/2718229"
  27. ],
  28. "merge-plugin": {
  29. "include": [
  30. "core/composer.json"
  31. ],
  32. "recurse": false,
  33. "replace": false,
  34. "merge-extra": false
  35. },
  36. "installer-paths": {
  37. "core": ["type:drupal-core"],
  38. "modules/contrib/{$name}": ["type:drupal-module"],
  39. "profiles/contrib/{$name}": ["type:drupal-profile"],
  40. "themes/contrib/{$name}": ["type:drupal-theme"],
  41. "drush/contrib/{$name}": ["type:drupal-drush"],
  42. "modules/custom/{$name}": ["type:drupal-custom-module"],
  43. "themes/custom/{$name}": ["type:drupal-custom-theme"]
  44. }
  45. },
  46. "autoload": {
  47. "psr-4": {
  48. "Drupal\\Core\\Composer\\": "core/lib/Drupal/Core/Composer"
  49. }
  50. },
  51. "scripts": {
  52. "pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump",
  53. "post-autoload-dump": [
  54. "Drupal\\Core\\Composer\\Composer::ensureHtaccess"
  55. ],
  56. "post-package-install": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
  57. "post-package-update": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup"
  58. },
  59. "repositories": [
  60. {
  61. "type": "composer",
  62. "url": "https://packages.drupal.org/8"
  63. }
  64. ]
  65. }