From 46a89f3611691fb169d83a95affd8722915e134e Mon Sep 17 00:00:00 2001 From: lucha <lucha@paranoici.org> Date: Fri, 19 Feb 2021 13:15:46 -0800 Subject: [PATCH] further simplify mu-plugins management This commits gets rid of the extra external directory to unpack mu-plugins. They are instead directly extracted into wp-content/mu-plugins/{name}/, and then the relevant files are copied (via the drop-in mechanism) to wp-content/mu-plugins/. This leaves spurious directories with undeeded files (readme, composer conf, etc.), but they should be harmless. --- .gitignore | 1 - composer.json | 10 +--------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index b602bd59..b81b63df 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ vendor/* app/* -mu-plugins-tmp/* auth.json diff --git a/composer.json b/composer.json index 118b03fd..be09079c 100644 --- a/composer.json +++ b/composer.json @@ -24,9 +24,6 @@ "url": "https://git.autistici.org/api/v4/group/90/-/packages/composer/packages.json" } ], - "config": { - "dropin-installer": "copy" - }, "require": { "php": ">=7.1", "composer/installers": "^1.8", @@ -121,13 +118,8 @@ "wordpress-install-dir": "app", "installer-types": ["bower-asset", "npm-asset"], "installer-paths": { - "mu-plugins-tmp/{$name}": [ - "wpackagist-plugin/hyperdb", - "wpackagist-plugin/disable-wordpress-updates", - "wpackagist-plugin/wpmu-new-blog-defaults", - "wpackagist-plugin/disable-emojis", - "type:wordpress-muplugin"], "app/{$name}": ["type:wordpress-dropin"], + "app/wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"], "app/wp-content/plugins/{$name}/": ["type:wordpress-plugin"], "app/wp-content/themes/{$name}/": ["type:wordpress-theme"], "app/wp-includes/js/{$name}/": ["type:npm-asset", "type:bower-asset"] -- GitLab