composer.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. },
  10. "replace": {
  11. "drupal/core": "^8.6"
  12. },
  13. "minimum-stability": "dev",
  14. "prefer-stable": true,
  15. "config": {
  16. "preferred-install": "dist",
  17. "autoloader-suffix": "Drupal8"
  18. },
  19. "extra": {
  20. "_readme": [
  21. "By default Drupal loads the autoloader from ./vendor/autoload.php.",
  22. "To change the autoloader you can edit ./autoload.php.",
  23. "This file specifies the packages.drupal.org repository.",
  24. "You can read more about this composer repository at:",
  25. "https://www.drupal.org/node/2718229"
  26. ],
  27. "merge-plugin": {
  28. "include": [
  29. "core/composer.json",
  30. "profiles/d8-starterkit-profile/composer.json"
  31. ],
  32. "recurse": true,
  33. "replace": false,
  34. "merge-extra": true
  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": "Drupal\\Core\\Composer\\Composer::ensureHtaccess",
  54. "post-package-install": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
  55. "post-package-update": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
  56. "drupal-phpunit-upgrade-check": "Drupal\\Core\\Composer\\Composer::upgradePHPUnit",
  57. "drupal-phpunit-upgrade": "@composer update phpunit/phpunit --with-dependencies --no-progress",
  58. "phpcs": "phpcs --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --",
  59. "phpcbf": "phpcbf --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --"
  60. },
  61. "repositories": [
  62. {
  63. "type": "composer",
  64. "url": "https://packages.drupal.org/8"
  65. }
  66. ]
  67. }