From c5761a2d53d2df65fabef56ff7b274ad07d05983 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 4 Mar 2021 23:03:40 +0100 Subject: [PATCH] Fix composer --- conf/composer.json | 77 ++++++++++++++++++++-------------------------- 1 file changed, 34 insertions(+), 43 deletions(-) diff --git a/conf/composer.json b/conf/composer.json index 014c3df..7a5f38e 100644 --- a/conf/composer.json +++ b/conf/composer.json @@ -1,14 +1,13 @@ { - "name": "drupal-composer/drupal-project", - "description": "Project template for Drupal 8 projects with composer", + "name": "drupal/recommended-project", + "description": "Project template for Drupal 8 projects with a relocated document root", "type": "project", "license": "GPL-2.0-or-later", - "authors": [ - { - "name": "", - "role": "" - } - ], + "homepage": "https://www.drupal.org/project/drupal", + "support": { + "docs": "https://www.drupal.org/docs/user_guide/en/index.html", + "chat": "https://www.drupal.org/node/314178" + }, "repositories": [ { "type": "composer", @@ -16,19 +15,14 @@ } ], "require": { - "php": ">=7.0.8", "composer/installers": "^1.2", - "cweagans/composer-patches": "^1.6.5", - "drupal/console": "^1.0.2", - "drupal/core": "^8.8.0", - "drupal/core-composer-scaffold": "^8.8.0", - "drush/drush": "^9.7.1 | ^10.0.0", - "vlucas/phpdotenv": "^4.0", - "webflo/drupal-finder": "^1.0.0", - "zaporylie/composer-drupal-optimizations": "^1.0" + "drupal/core-composer-scaffold": "^8.8", + "drupal/core-project-message": "^8.8", + "drupal/core-recommended": "^8.8", + "drush/drush": "^9.7.1 | ^10.0.0" }, "require-dev": { - "drupal/core-dev": "^8.8.0" + "drupal/core-dev": "^8.8" }, "conflict": { "drupal/drupal": "*" @@ -38,31 +32,7 @@ "config": { "sort-packages": true }, - "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" - ] - }, "extra": { - "composer-exit-on-patch-failure": true, - "patchLevel": { - "drupal/core": "-p2" - }, "drupal-scaffold": { "locations": { "web-root": "__APP__/" @@ -74,7 +44,28 @@ "__APP__/modules/contrib/{$name}": ["type:drupal-module"], "__APP__/profiles/contrib/{$name}": ["type:drupal-profile"], "__APP__/themes/contrib/{$name}": ["type:drupal-theme"], - "drush/Commands/contrib/{$name}": ["type:drupal-drush"] + "drush/Commands/contrib/{$name}": ["type:drupal-drush"], + "__APP__/modules/custom/{$name}": ["type:drupal-custom-module"], + "__APP__/themes/custom/{$name}": ["type:drupal-custom-theme"] + }, + "drupal-core-project-message": { + "include-keys": ["homepage", "support"], + "post-create-project-cmd-message": [ + " ", + " Congratulations, you’ve installed the Drupal codebase ", + " from the drupal/recommended-project template! ", + " ", + "", + "Next steps:", + + " * Install the site: https://www.drupal.org/docs/8/install", + " * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html", + " * Get support: https://www.drupal.org/support", + " * Get involved with the Drupal community:", + " https://www.drupal.org/getting-involved", + " * Remove the plugin that prints this message:", + " composer remove drupal/core-project-message" + ] } } }