Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
{
"name": "mynamespace/myproject",
"description": "Composer file example",
"repositories": [
{
"type": "composer",
"url": "http://drupal-packagist.webflo.io/"
},
{
"type": "package",
"package": {
"name": "mynamespace/patches",
"version": "1.0.0",
"type": "patches",
"require": {
"netresearch/composer-patches-plugin": "~1.0"
},
"extra": {
"patches": {
"drupal/entityreference": {
"7.1.x-dev": {
"dc4196b4e97e11ff24e762d94864132e12daf7be": {
"title": "Allow skipping entity access check when rendering field",
"url": "https://www.drupal.org/files/issues/entityreference-skip-access-check-1967180-16.patch"
}
}
},
"drupal/features": {
"7.2.2":[
{
"title": "Remove mtime from .info export (added by Drupal 7.33)",
"url": "https://www.drupal.org/files/issues/2381739-features-mtime.patch"
}
]
},
"drupal/panels_bootstrap_styles": {
"7.1.0-alpha1":[
{
"title": "Bootstrap Panel Title uses div insteaad of h3 element - semantic issue",
"url": "https://www.drupal.org/files/issues/2228445-comment3-h3-panel-title.patch"
}
]
}
}
}
}
},
{
"type": "package",
"package": {
"name": "library/backbone",
"version": "1.0.0",
"type": "drupal-library",
"dist": {
"url": "https://github.com/jashkenas/backbone/archive/1.0.0.zip",
"type": "zip"
}
}
},
{
"type": "package",
"package": {
"name": "library/underscore",
"version": "1.5.2",
"type": "drupal-library",
"dist": {
"url": "https://github.com/jashkenas/underscore/archive/1.5.2.zip",
"type": "zip"
}
}
},
{
"type": "package",
"package": {
"name": "drupal/clean_markup",
"version": "7.2.7",
"type": "drupal-module",
"dist": {
"url": "http://ftp.drupal.org/files/projects/clean_markup-7.x-2.7.tar.gz",
"type": "tar"
}
}
},
{
"type": "package",
"package": {
"name": "drupal/services",
"version": "7.3.10",
"type": "drupal-module",
"dist": {
"url": "http://ftp.drupal.org/files/projects/services-7.x-3.10.tar.gz",
"type": "tar"
}
}
},
{
"type": "package",
"package": {
"name": "drupal/views_datasource",
"version": "7.1.0-alpha1-dev",
"type": "drupal-module",
"source": {
"url": "http://git.drupal.org/project/views_datasource.git",
"type": "git",
"reference": "c15e455cebe36c1a2ef1082da4b0ea7d93db2ed5"
}
}
}
],
"require": {
"davidbarratt/custom-installer": "dev-master",
"derhasi/composer-preserve-paths": "0.1.*",
"mynamespace/patches": "*",
"library/backbone": "1.0.0",
"library/underscore": "1.5.2",
"drupal/drupal": "7.34",
"drupal/addressfield": "7.1.0-rc1",
"drupal/admin_menu": "7.3-rc4",
"drupal/auto_entitylabel": "7.1.2",
"drupal/autologout": "7.4.3",
"drupal/calendar": "7.3.5",
"drupal/clean_markup": "7.2.7",
"drupal/ckeditor": "7.1.16",
"drupal/content_access": "7.1.2-beta2",
"drupal/ctools": "7.1.5",
"drupal/date": "7.2.8",
"drupal/delete_all": "7.1.1",
"drupal/devel": "7.1.5",
"drupal/diff": "7.3.2",
"drupal/draggableviews": "7.2",
"drupal/ds": "7.2.7",
"drupal/email": "7.1.3",
"drupal/features": "7.2.2",
"drupal/field_group": "7.1.4",
"drupal/field_permissions": "7.1.0-beta2",
"drupal/file_entity": "7.2.0-beta1",
"drupal/flag": "7.3.5",
"drupal/hide_formats": "7.1.1",
"drupal/image_url_formatter": "7.1.4",
"drupal/job_scheduler": "7.2.0-alpha3",
"drupal/jquery_update": "7.2.4",
"drupal/libraries": "7.2.2",
"drupal/link": "7.1.3",
"drupal/linkit": "7.3.3",
"drupal/markup": "7.1.1-beta1",
"drupal/media": "7.2.0-alpha4",
"drupal/message": "7.1.9",
"drupal/migrate": "7.2.5",
"drupal/module_filter": "7.2.0-alpha2",
"drupal/panelizer": "7.3.1",
"drupal/panels": "7.3.4",
"drupal/pathauto": "7.1.2",
"drupal/phone": "7.1.0-beta1",
"drupal/publish_button": "7.1",
"drupal/redirect": "7.1.0-rc1",
"drupal/rules": "7.2.7",
"drupal/search_autocomplete": "7.4",
"drupal/select_or_other": "7.2.20",
"drupal/session_limit": "7.2",
"drupal/services": "7.3.10",
"drupal/strongarm": "7.2",
"drupal/table_element": "7.1.0-beta1",
"drupal/telephone": "7.1.0-alpha1",
"drupal/token": "7.1.5",
"drupal/transliteration": "7.3.2",
"drupal/view_unpublished": "7.1.1",
"drupal/views": "7.3.8",
"drupal/views_bulk_operations": "7.3.2"
},
"require-dev": {
"drupal/conditional_fields": "7.3.x-dev#78ecb040828f8b9b38ca6e1c37a69782da8d9f86",
"drupal/entityreference": "7.1.x-dev#dc4196b4e97e11ff24e762d94864132e12daf7be",
"drupal/password_policy": "7.1.x-dev#1276fb37c81a1d76911e0fe1b597438030021676",
"drupal/views_datasource": "7.1.0-alpha1-dev"
},
"config": {
"vendor-dir": "vendor"
},
"extra": {
"custom-installer": {
"drupal-module": "back-dr/sites/all/modules/contrib/{$name}/",
"drupal-theme": "back-dr/sites/all/themes/contrib/{$name}/",
"drupal-library": "back-dr/sites/all/libraries/{$name}/",
"drupal-drush": "back-dr/sites/all/drush/{$name}/",
"drupal-profile": "back-dr/profiles/{$name}/",
"drupal-core": "back-dr/"
},
"preserve-paths": [
"back-dr/sites/all/modules/contrib",
"back-dr/sites/all/modules/custom",
"back-dr/sites/all/modules/features",
"back-dr/sites/all/themes/contrib",
"back-dr/sites/all/themes/custom",
"back-dr/sites/all/libraries",
"back-dr/sites/all/drush",
"back-dr/sites/default/settings.php",
"back-dr/sites/default/files"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment