Skip to content

Instantly share code, notes, and snippets.

@jeremypeter
Created October 5, 2023 17:27
Show Gist options
  • Save jeremypeter/c2b73b9efc6f5500f006f2642be41cd6 to your computer and use it in GitHub Desktop.
Save jeremypeter/c2b73b9efc6f5500f006f2642be41cd6 to your computer and use it in GitHub Desktop.
Drush 12 and Tome Example composer.json
{
"name": "drupal-tome/tome-project",
"description": "A starter project for Tome.",
"type": "project",
"minimum-stability": "dev",
"prefer-stable": true,
"repositories": [
{
"type": "vcs",
"url": "https://github.com/elgandoz/tome_drush.git"
},
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
"require": {
"composer/installers": "^1.9",
"drupal/core-composer-scaffold": "~10.1.0",
"cweagans/composer-patches": "^1.7",
"drush/drush": "^12.0",
"drupal/tome": "1.x-dev",
"drupal-tome/tome_drush": "dev-dev-drush12",
"webflo/drupal-finder": "^1.2",
"drupal/core-recommended": "~10.1.0",
"drupal/core-dev": "~10.1.0"
},
"scripts": {
"symlink": "./scripts/symlink.sh",
"post-install-cmd": [
"@symlink"
],
"post-update-cmd": [
"@symlink"
]
},
"extra": {
"installer-paths": {
"web/core": ["type:drupal-core"],
"web/libraries/{$name}": ["type:drupal-library"],
"web/modules/contrib/{$name}": ["type:drupal-module"],
"web/profiles/contrib/{$name}": ["type:drupal-profile"],
"web/themes/contrib/{$name}": ["type:drupal-theme"],
"drush/Commands/{$name}": ["type:drupal-drush"]
},
"drupal-scaffold": {
"locations": {
"web-root": "web/"
}
},
"patches" :{
"drupal/tome": {
"Tome not working with Drush 12": "https://www.drupal.org/files/issues/2023-08-02/tome_drush12-support.patch"
}
}
},
"require-dev": {
"phpspec/prophecy-phpunit": "^2"
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"cweagans/composer-patches": true,
"drupal/core-composer-scaffold": true,
"phpstan/extension-installer": true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment