Compatible with drupal/recommended-project?
I'm trying to get CiviCRM installed with your plugin, using drupal/recommended-project instead of drupal-composer/drupal-project.
I'm first trying it by taking an existing composer install and then messing up the composer.json file and running composer update.
It seems to have worked for the Drupal code, but I think I'm running into an issue that the roundearth plugin isn't firing (i.e. the basic code got updated, but the post install packages to download bit didn't happen, I'm missing the directory /vendor/civicrm/civicrm-core/packages for example.)
In case it's useful, here's a piece of the diff in the composer.json that missing in the new project and might affect this.
"autoload": {
"classmap": [
"scripts/composer/ScriptHandler.php"
],
"files": ["load.environment.php"]
},
"scripts": {
"pre-install-cmd": [
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
],
"pre-update-cmd": [
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
],
"post-install-cmd": [
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
],
"post-update-cmd": [
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
]
},
Update/Conclusion:
- drupal/recommended-project seems to be working well with this plugin.
- Running "composer civicrm" was what I learned I could do to solve the issue I was having.
Edited by Alan Dixon