balbuf / drupal-libraries-installer

Install Drupal libraries via a simple listing in your composer.json file
13 stars 6 forks source link

Add ability to install libraries declared by sub-packages + (QOL improvements) #5

Closed codebymikey closed 4 years ago

codebymikey commented 4 years ago

Addresses #1 and #2.

Sub-package install functionality will work by specifying the drupal-libraries-dependencies extra option. It may be set to true or an array of package names, the array name approach isn't recursive, so each package name must be explicitly declared.

Also added quality of life improvements such as an alternative configuration definition for supporting different file extensions, SHA1 checksum verification and removing example/demo/test files from the libraries (see PSA-2011-002).

With regards to the lock file, it stores the installed state of the libraries inside a local installed-libraries.json file inside the drupal-libraries-installer vendor folder similar to how composer itself does it. It was done this way to keep compatibility with the old API which works only on the post-install and post-update hooks, and at that point the lock file has already been written to.

jcnventura commented 4 years ago

I think by now, @balbuf has abandoned this package.. Can you change your composer.json so that we can do

composer require zodiacmedia/drupal-libraries-installer

please?

codebymikey commented 4 years ago

Hi @jcnventura, you're right.

I'll look into publishing it shortly.

edit: done!