Install via composer

Created on 16 August 2017, over 7 years ago
Updated 4 November 2023, over 1 year ago

I used the drupal composer project and added the plupload module. I download the plupload lib and paste her in the library folder (web/libraries/plupload). The problem now is that plupload didn't found the plupload library. Are there any more steps nessesary to get plupload work?

📌 Task
Status

Fixed

Version

2.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Status changed to Needs review over 1 year ago
  • 🇪🇸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...
  • Status changed to Fixed over 1 year ago
  • 🇪🇸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.

Production build 0.71.5 2024