Problem/Motivation

The default settings of moderation dashboard require a local copy of chartjs.
Site builder have to manually adjust their composer.json to download it via composer.

I think it could be a nice enhancement to provide a drush command for downloading the libraries like webform does.
https://git.drupalcode.org/project/webform/-/blob/6.2.x/src/Commands/Web...

Moderation dashboard is a dependency from a module we use in our distribution.
From that point of view it is not easy to enforce the library download of the projects our distro is used by.

Proposed resolution

Add a drush command for downloading the chartjs library dependency.

Remaining tasks

QA

CommentFileSizeAuthor
#3 3317925-3.patch1.21 KBsmustgrave
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sunlix created an issue. See original summary.

bluegeek9’s picture

Using composer.libraries.json might also be an option. Webform uses composer.libraries.json, but would also require the wikimedia/composer-merge-plugin package.

smustgrave’s picture

Status: Active » Needs review
StatusFileSize
new1.21 KB

Think adding a composer.libraries.json could work.

smustgrave’s picture

Status: Needs review » Fixed

Went ahead and merged as I'm planning a release today.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.