Skip to content

Instantly share code, notes, and snippets.

@generalredneck
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save generalredneck/503ebdd9b4c46f10830d to your computer and use it in GitHub Desktop.
Save generalredneck/503ebdd9b4c46f10830d to your computer and use it in GitHub Desktop.
Example Composer json
{
"name": "generalredneck/drupal-test-compose",
"description": "Test Drupal Composer Site",
"minimum-stability": "alpha",
"type": "project",
"repositories": [
{
"type": "composer",
"url": "http://packagist.drupal-composer.org"
},
{
"type": "package",
"package": {
"name": "simplehtmldom/simplehtmldom",
"version": "1.11.210-dev",
"source": {
"url": "http://svn.code.sf.net/p/simplehtmldom/code",
"type": "svn",
"reference": "trunk@210"
},
"autoload": {
"classmap": ["simple_html_dom.php"],
"files": ["simple_html_dom.php"]
}
}
},
{
"type": "package",
"package": {
"name": "generalredneck/drupal-test-compose-patches",
"version": "1.0.0",
"type": "patches",
"require": {
"netresearch/composer-patches-plugin": "~1.0",
"drupal/admin_menu": "7.3.0-rc5"
},
"extra": {
"patches": {
"drupal/admin_menu": {
"7.3.0-rc5": [
{
"title": "Admin Menu - Flush Caches Change",
"url": "https://www.drupal.org/files/issues/admin-menu-flush-caches-change-2378687-2.patch"
}
]
}
}
}
}
}
],
"require": {
"ckeditor/ckeditor": "dev-full/stable",
"drupal/drupal-library-installer-plugin": "~0.1",
"drupal/tangler": "~0.1.8",
"drupal/views": "7.*",
"drupal/wysiwyg": "7.2.x-dev",
"generalredneck/drupal-test-compose-patches": "~1.0",
"winmillwill/settings_compile": "~2.1.1"
},
"require-dev": {
"drupal/devel": "7.*",
"drupal/devel_themer": "7.1.x-dev" ,
"drupal/diff": "~7.3.2",
"simplehtmldom/simplehtmldom": "1.11.210-dev"
},
"extra": {
"drupal-libraries": {
"library-directory": "www/sites/all/libraries",
"libraries": [
{
"name": "ckeditor",
"package": "ckeditor/ckeditor"
},
{
"name": "simplehtmldom",
"package": "simplehtmldom/simplehtmldom"
}
]
}
},
"scripts": {
"post-install-cmd": [
"Drupal\\Tangler\\ScriptHandler::postUpdate",
"vendor/bin/settings_compile cnf/config.yml www/sites/default/settings.php"
],
"post-update-cmd": [
"Drupal\\Tangler\\ScriptHandler::postUpdate"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment