While working on another article, I finally hit the point where I really REALLY wanted to put smaller images in the overall article view, but to be able to click on the image and have the image show up full-sized. Such is the pain-point of including screenshots in an article. So, I did some checking, and found the Colorbox plugin. So, I followed the usual pattern and did the following commands, as I talk about in the first part of this article, with an added composer require drupal/colorbox:^2.2 after the update. One of the first steps I do is I check the status report at /admin/reports/status. It reminds me that I need to download a plugin, a step I had missed in my quick scanning of the plugin page. Thankfully, there is a command to do that for you, where you just run drush colorbox:plugin. And in my development setup, that worked fine. So I updated some settings, did the drush cex, then started to commit things for deployment. But I noticed something interesting... the plugin is downloaded into web/libraries/colorbox, but that directory is ignored by the .gitignore file. It makes me wonder how all the others, such as at the agencies which do big-time Drupal deployments, do this. Do they include the directory in their git repositories, or do they do the command manually??
I also ran into the interesting problem that my PHP installation was not 100% identical between the machine where my development instance is installed and where my production instance is. When I did the command to install the plugin, I got the following error:
Error: Class "ZipArchive" not found...
It turns out, I needed to install the php-zip package using the drf command. I probably should look at all the PHP packages to see if I am missing any other packages.
Now to try it out...