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
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3317925-3.patch | 1.21 KB | smustgrave |
Issue fork moderation_dashboard-3317925
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
Comment #2
bluegeek9 commentedUsing composer.libraries.json might also be an option. Webform uses composer.libraries.json, but would also require the wikimedia/composer-merge-plugin package.
Comment #3
smustgrave commentedThink adding a composer.libraries.json could work.
Comment #5
smustgrave commentedWent ahead and merged as I'm planning a release today.