composer.json 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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-or-later",
  6. "require": {
  7. "composer/installers": "^1.0.24",
  8. "wikimedia/composer-merge-plugin": "^1.4",
  9. "drupal/core": "^8.6",
  10. "drupal/console": "^1.7",
  11. "drush/drush": "^9"
  12. },
  13. "replace": {
  14. },
  15. "minimum-stability": "dev",
  16. "prefer-stable": true,
  17. "config": {
  18. "preferred-install": "dist",
  19. "autoloader-suffix": "Drupal8"
  20. },
  21. "extra": {
  22. "_readme": [
  23. "By default Drupal loads the autoloader from ./vendor/autoload.php.",
  24. "To change the autoloader you can edit ./autoload.php.",
  25. "This file specifies the packages.drupal.org repository.",
  26. "You can read more about this composer repository at:",
  27. "https://www.drupal.org/node/2718229"
  28. ],
  29. "merge-plugin": {
  30. "include": [
  31. "core/composer.json"
  32. ],
  33. "recurse": true,
  34. "replace": false,
  35. "merge-extra": false
  36. },
  37. "installer-paths": {
  38. "core": ["type:drupal-core"],
  39. "modules/contrib/{$name}": ["type:drupal-module"],
  40. "profiles/contrib/{$name}": ["type:drupal-profile"],
  41. "themes/contrib/{$name}": ["type:drupal-theme"],
  42. "drush/contrib/{$name}": ["type:drupal-drush"],
  43. "modules/custom/{$name}": ["type:drupal-custom-module"],
  44. "themes/custom/{$name}": ["type:drupal-custom-theme"]
  45. }
  46. },
  47. "autoload": {
  48. "psr-4": {
  49. "Drupal\\Core\\Composer\\": "core/lib/Drupal/Core/Composer"
  50. }
  51. },
  52. "scripts": {
  53. "pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump",
  54. "post-autoload-dump": "Drupal\\Core\\Composer\\Composer::ensureHtaccess",
  55. "post-package-install": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
  56. "post-package-update": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
  57. "drupal-phpunit-upgrade-check": "Drupal\\Core\\Composer\\Composer::upgradePHPUnit",
  58. "drupal-phpunit-upgrade": "@composer update phpunit/phpunit --with-dependencies --no-progress",
  59. "phpcs": "phpcs --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --",
  60. "phpcbf": "phpcbf --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --"
  61. },
  62. "repositories": [
  63. {
  64. "type": "composer",
  65. "url": "https://packages.drupal.org/8"
  66. }
  67. ]
  68. }