Skip to content

Instantly share code, notes, and snippets.

@dawehner
Created August 20, 2014 10:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dawehner/dd6bf5b07cdd28d95f6c to your computer and use it in GitHub Desktop.
Save dawehner/dd6bf5b07cdd28d95f6c to your computer and use it in GitHub Desktop.
{
"minimum-stability": "dev",
"require": {
"composer/installers": "dev-drupal-core",
"drupal/drupal-core": "8.0.*",
"drupal/devel": "dev-8.x-1.x",
"drupal/config_devel": "dev-8.x-1.x"
},
"require-dev": {
"drupal/devel": "dev-8.x-1.x",
"drupal/config_devel": "dev-8.x-1.x"
},
"config": {
"bin-dir": "bin/"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/tstoeckler/installers"
},
{
"type": "vcs",
"url": "https://github.com/tstoeckler/drupal-core"
},
{
"type": "vcs",
"url": "http://git.drupal.org/project/devel.git"
},
{
"type": "vcs",
"url": "http://git.drupal.org/project/config_devel.git"
}
],
"extra": {
"installer-paths": {
"web/core": ["type:drupal-core"],
"web/modules/contrib/{$name}": ["type:drupal-module"]
}
}
}
@cosmicdreams
Copy link

"extra": {
"installer-paths": {
"web/core": ["type:drupal-core"],
"web/modules/contrib/{$name}": ["type:drupal-module"]
}
}

How is this used?

Specifically how does the type: inform composer how to handle the other directives above. It doesn't seem like enough information has been provided to allow composer to know what is a type:drupal-module and what is a type:drupal-core.

@larowlan
Copy link

@cosmicdreams the type is in each individual module's composer.json - e.g. https://github.com/larowlan/default_content/blob/8.x/composer.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment