After RC1 composer.json was removed. I've checked in code repository to find an explanation but did not find one.

In my understanding I though "composer require drupal/jquery_colorpicker:~1.0" would install the lib dependency (I read https://drupal.stackexchange.com/questions/225601/how-do-i-create-a-modu...) but since there is no composer.json anymore it won't.

Am I missing something?

Comments

progzy created an issue. See original summary.

jaypan’s picture

Status: Active » Fixed

It was never removed, as it was never added into 8.x-1.x. When I originally developed the D8 version of the module, I didn't understand how composer worked, and was not able to find clear instructions. As such, the library was never integrated with Composer, and required manual installation, as described in the README and in the installation instructions on the module download page.

That said, I've just released 8.x-2.0, which does have a composer.json, and will automatically install the remote library.

progzy’s picture

Well I've just checked again and there is a composer.json in "jquery_colorpicker 8.x-1.0-rc1".

Whatever, glad to hear that there is one in 8.x-2.0!

Thank you!

jaypan’s picture

Oh, I must have added it when trying to set it up in the first place, but I couldn’t got it working. Drupal by default never allow for linking to JS libraries in the vendor directory, and at the time there wasn’t a way around this issue. I’ve since created the Vendor Stream Wrapper library to fix this issue, which I’ve integrated into 8.x-2.x.

Status: Fixed » Closed (fixed)

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