Using standard library paths when managing project with composer

Created on 28 February 2018, almost 7 years ago
Updated 27 November 2024, 22 days ago

If you are using composer to manager your Drupal project you will need to add the following to composer.json and then apply the attached patch. This is required because the jquery parallax library uses a different structure than the module currently expects. At some point this module should be updated accordingly.

The following replaces the need to download the library and place it in /libraries manually (and having to put into 3 separate folders and rename the folders and files, which is tedious).

Add to the require statement:
"library-ianlunn/jquery-parallax": "dev-master",

Add repositories:

    "repositories": {
        "jquery-parallax": {
            "type": "package",
            "package": {
                "name": "library-ianlunn/jquery-parallax",
                "version": "dev-master",
                "type": "drupal-library",
                "source": {
                    "url": "https://github.com/ianlunn/jquery-parallax.git",
                    "type": "git",
                    "reference": "1.1.3"
                },
                "require": { "composer/installers": "~1.0" }
            }
        },
    },

Add to extra:

        "patches": {
            "drupal/parallax_bg": {
                "Use standard library paths.": "https://www.drupal.org/files/issues/2948903-1-library_paths.patch"
            }
        },
πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States john.oltman

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024