Created
July 19, 2016 08:03
-
-
Save MatthieuScarset/228047cc91eba670b0a4841f756af42d to your computer and use it in GitHub Desktop.
Drupal - Composer example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "drupal/drupal", | |
"description": "Drupal is an open source content management platform powering millions of websites and applications.", | |
"type": "project", | |
"license": "GPL-2.0+", | |
"require": { | |
"composer/installers": "^1.0.21", | |
"wikimedia/composer-merge-plugin": "~1.3", | |
"drupal/field_collection": "^8", | |
"drupal/panels":"^8", | |
"drupal/page_manager": "^8" | |
}, | |
"replace": { | |
"drupal/core": "~8.1" | |
}, | |
"minimum-stability": "dev", | |
"prefer-stable": true, | |
"config": { | |
"preferred-install": "dist", | |
"autoloader-suffix": "Drupal8" | |
}, | |
"extra": { | |
"_readme": [ | |
"By default Drupal loads the autoloader from ./vendor/autoload.php.", | |
"To change the autoloader you can edit ./autoload.php." | |
], | |
"merge-plugin": { | |
"include": [ | |
"core/composer.json" | |
], | |
"recurse": false, | |
"replace": false, | |
"merge-extra": false | |
}, | |
"installer-paths": { | |
"core": ["type:drupal-core"], | |
"modules/contrib/{$name}": ["type:drupal-module"], | |
"profiles/contrib/{$name}": ["type:drupal-profile"], | |
"themes/contrib/{$name}": ["type:drupal-theme"] | |
} | |
}, | |
"autoload": { | |
"psr-4": { | |
"Drupal\\Core\\Composer\\": "core/lib/Drupal/Core/Composer" | |
} | |
}, | |
"scripts": { | |
"pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump", | |
"post-autoload-dump": "Drupal\\Core\\Composer\\Composer::ensureHtaccess", | |
"post-package-install": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup", | |
"post-package-update": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup", | |
"post-install-cmd": [ | |
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles" | |
], | |
"post-update-cmd": [ | |
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles" | |
] | |
}, | |
"repositories": [{ | |
"type": "composer", | |
"url": "https://packagist.drupal-composer.org" | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment