composer.json 2.9 KB

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