Skip to content

Add webforms libraries to the project composer.json #47

@finnlewis

Description

@finnlewis

Our default install includes of LocalGov Microsites includes webform, but not the webform libraries.

This results in the error message on the site status page:

image

We could set this up in our project template to save devs having to do that as part of the setup.

Here's the documentation on how to add the libraries with the the composer merge plugin.

https://www.drupal.org/docs/8/modules/webform/webform-frequently-asked-questions/how-to-use-composer-to-install-libraries-for-the-webform-module

Basically:

composer require wikimedia/composer-merge-plugin

And add this to extras in composer.json:

        "merge-plugin": {
            "include": [
                "web/modules/contrib/webform/composer.libraries.json"
            ]
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions