From 958111d80ffea4354ae40ea03cd250cd0d60a82e Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 24 Oct 2020 19:36:53 +0100 Subject: [PATCH] Remove .git directories within contrib modules Automatically remove any `.git` directories within the project's dependencies, such as within contrib modules like Plausible which caused `web/modules/contrib` to keep appearing and being added to the index. --- .idea/oliverdavies-uk.iml | 1 + .idea/php.xml | 1 + composer.json | 3 ++- composer.lock | 40 ++++++++++++++++++++++++++++++++++++++- 4 files changed, 43 insertions(+), 2 deletions(-) diff --git a/.idea/oliverdavies-uk.iml b/.idea/oliverdavies-uk.iml index 2a5e0d6..79f1ab0 100644 --- a/.idea/oliverdavies-uk.iml +++ b/.idea/oliverdavies-uk.iml @@ -130,6 +130,7 @@ + diff --git a/.idea/php.xml b/.idea/php.xml index bb00eb9..1ee0f9c 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -147,6 +147,7 @@ + diff --git a/composer.json b/composer.json index 42434c7..675dee9 100644 --- a/composer.json +++ b/composer.json @@ -44,7 +44,8 @@ "drupal/stage_file_proxy": "^1.0", "drush/drush": "^9", "illuminate/support": "^7.10", - "nesbot/carbon": "^2.33" + "nesbot/carbon": "^2.33", + "topfloor/composer-cleanup-vcs-dirs": "^1.0" }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2", diff --git a/composer.lock b/composer.lock index b40ccb3..1644fa0 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "dcefedfd2f7ee2173cec5928b432d12a", + "content-hash": "251bb73361539f16425f518ae1c2a858", "packages": [ { "name": "asm89/stack-cors", @@ -7700,6 +7700,44 @@ ], "time": "2020-05-11T07:51:54+00:00" }, + { + "name": "topfloor/composer-cleanup-vcs-dirs", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/TopFloorTech/composer-cleanup-vcs-dirs.git", + "reference": "0158853dd054321b5048108ed5532c4b5e002d1b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/TopFloorTech/composer-cleanup-vcs-dirs/zipball/0158853dd054321b5048108ed5532c4b5e002d1b", + "reference": "0158853dd054321b5048108ed5532c4b5e002d1b", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0.0", + "php": ">=5.5", + "symfony/finder": "*" + }, + "require-dev": { + "composer/composer": "dev-master" + }, + "type": "composer-plugin", + "extra": { + "class": "TopFloor\\ComposerCleanupVcsDirs\\Plugin" + }, + "autoload": { + "psr-4": { + "TopFloor\\ComposerCleanupVcsDirs\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "GPL-2.0+" + ], + "description": "Automatically deletes .git directories in newly installed or updated dependencies.", + "time": "2016-10-06T04:35:51+00:00" + }, { "name": "twig/twig", "version": "v1.42.5",