localgovdrupal / localgov_microsites_project

Project template for Drupal 9 sites built with the LocalGov Drupal Microsites distribution.
GNU General Public License v2.0
5 stars 4 forks source link

Add webforms libraries to the project composer.json #47

Open finnlewis opened 5 months ago

finnlewis commented 5 months ago

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"
            ]
        }