Create a gist now

Instantly share code, notes, and snippets.

@kasperg /composer.json Secret
Last active May 20, 2016

composer-demo
{
"name": "kasperg/composer-demo",
"description": "A demo Composer project",
"repositories": [
{
"type": "package",
"package": {
"name": "drupal/drupal",
"type": "non-destructive-archive-installer",
"version": "7.32.0",
"dist": {
"url": "http://ftp.drupal.org/files/projects/drupal-7.32.zip",
"type": "zip"
},
"require": {
"azt3k/non-destructive-archive-installer" : "*"
},
"extra": {
"target-dir": ".",
"omit-first-directory": "true"
},
"replace": {
"drupal/path": "self.version"
}
}
},
{
"type": "composer",
"url": "http://static.drupal-packagist.org/v0.2.0/"
},
{
"type": "package",
"package": {
"name": "kasperg/composer-demo-patches",
"version": "1.0.0",
"type": "patches",
"require": {
"netresearch/composer-patches-plugin": "~1.0"
},
"extra": {
"patches": {
"drupal/pathauto": {
"7.1.2": [
{
"title": "Merge in pathauto_persist module functionality to prevent losing manual aliases with node_save() calls",
"url": "https://www.drupal.org/files/issues/pathauto-persist-936222-213-pathauto-state.patch"
}
]
}
}
}
}
},
{
"type": "package",
"package": {
"name": "ckeditor/ckeditor",
"version": "4.4.5",
"type": "drupal-library",
"dist": {
"url": "https://github.com/ckeditor/ckeditor-dev/archive/4.4.5.zip",
"type": "zip"
},
"source": {
"type": "vcs",
"url": "https://github.com/ckeditor/ckeditor-dev.git",
"reference": "4.4.5"
},
"require": {
"composer/installers": "~1.0"
}
}
}
],
"require": {
"azt3k/non-destructive-archive-installer" : "0.2.*",
"composer/installers": "~1.0",
"drupal/drupal": "7.32.0",
"drupal/pathauto": "7.1.2",
"drupal/zen": "7.5.5",
"guzzle/guzzle": "~3.9",
"components/jquery": "1.10.*",
"ckeditor/ckeditor": "4.4.*",
"kasperg/composer-demo-patches": "*"
},
"extra": {
"installer-paths": {
"sites/all/modules/contrib/{$name}/": ["type:drupal-module"],
"sites/all/themes/contrib/{$name}/": ["drupal/zen"],
"sites/all/libraries/{$name}/": ["ckeditor/ckeditor"]
}
},
"config": {
"vendor-dir": "sites/all/vendor",
"component-dir": "sites/all/libraries"
},
"authors": [
{
"name": "Kasper Garnaes",
"email": "kasper@reload.dk"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment