- Status changed to Needs review
over 1 year ago 4:16pm 7 October 2023 - 🇪🇸Spain budalokko Girona
I've done some work in an attempt to make installation of plupload module, plupload library and the examples clearing patch a bit quicker in composer-based workflows.
Would be great to get some feedback before committing this.
The proposed solution is based on adding a
composer.libraries.json
file to the module and use wikimedia/composer-merge-plugin and cweagans/composer-patches in main composer.json so all gets installed correctly.So the instructions to test this would be the following. Step 1 won't be necessary once this is merged.
1. Instruct composer to use this issue's branch instead of default - The repositories section of your composer.json should end up with something like this:
"repositories": [ { "type": "composer", "url": "https://packages.drupal.org/8", "exclude": [ "drupal/plupload" ] }, { "type": "package", "package": { "name": "drupal/plupload", "version": "dev-2902645-install-via-composer", "type": "drupal-module", "source": { "type": "git", "url": "https://git.drupalcode.org/issue/plupload-2902645", "reference": "2.1.x" } } } ],
2. Install cweagans/composer-patches and wikimedia/composer-merge-plugin
composer require cweagans/composer-patches wikimedia/composer-merge-plugin
3. Instruct merge plugin to use plupload composer.json. The "extra" section of composer.json should be like this:
"extra": { "merge-plugin": { "include": [ "web/modules/contrib/plupload/composer.libraries.json" ] } }
- @budalokko opened merge request.
-
budalokko →
committed c1b79b05 on 2.1.x
Issue #2902645 by budalokko, tormi, jeffschuler, johnnydarkko: Install...
-
budalokko →
committed c1b79b05 on 2.1.x
- Status changed to Fixed
over 1 year ago 6:20pm 4 November 2023 - 🇪🇸Spain budalokko Girona
Created documentation on how to install plupload library via composer:
https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib... →
Updated readme with a reference to it.
Automatically closed - issue fixed for 2 weeks with no activity.