Where/how to add 3rd party PHP packages used by wprig components in the /inc folder?
I notice that the composer vendor folder is not included in the production build....
Say I have a package that I want to use in a component, do I use a normal composer/vendor install, or do I manually copy the files into the component folder?
Some docs on this workflow would be great!
I notice that the composer vendor folder is not included in the production build
I've been thinking about this and I think the best approach would be for the production build step to copy composer.lock to the production build directory then run composer install --no-dev, rather than copying the vendor directory.
If I make a PR that does that, can you help test it @seanrasmussen?
Sure, I'd be happy to help test it... with the disclaimer that I am a bit new to OOP PHP :-)
Just curious -- would that mean that the bundle.zip would also have the vendor (production) folder?
would that mean that the bundle.zip would also have the vendor (production) folder?
Yes, it would since the .zip is created at the end of the production build.