Closed VangelisP closed 1 year ago
@bjendres any plans on adapting this extension to be more composer-friendly ? I think the folder structure of this repo has been a legacy issue for a long time, we could bypassed with some tricks for D7/WP installations.. but for D9, based on composer, this is a blocking issue right now.
tx!
Sounds good to me, could you create a PR?
But... don't we have to include the two bundled libraries (eval-math
and jsoneditor
) as a composer dependency as well?
@bjendres in regards to your question about the 2 libraries, you have 2 options:
1) Keep it as-is, CiviCRM works fine by publishing the CSS/JS assets that already exist on the repository via the civicrm-asset-plugin
, so you don't really need to do anything at the moment.
2) Try to add the as external library requirements via composer.json
, but that would mean that it needs more work.
Thanks @VangelisP. Option 2 sounds good to me, but I don't have the time or means to do this.
If somebody wants to create a PR, you'd be very welcome.
One first approach would be to have a release with the contents of the extension folder directly on the root and also add composer.json to that root folder. Thoughts?
I agree, that's something we should do, see also #197, but it would break all open branches and PRs.
How about we schedule this for after the 0.8
release?
I'll do some tests adding the 2 libraries via composer.json
We (@jensschuppe, @VangelisP and @bjendres) decided to normalise the repository structure with version 1.0
, but we'll have to close all outstanding pull requests.
So, now the master of CiviBanking has the "normal" (composer-friendly) directory structure.
It would be great if you could create a new PR adding the composer files.
Fantastic work Bjorn ! I will add the PR as soon as possible!
PR is ready: #377
Merged it, thanks. Can we close here, too, then?
Yes! All good !
Hi there! What is the status of the extension in regards to Drupal 9 & Composer?
Right now, as the extension is missing a
composer.json
file, we're downloading the package like that:The extension downloads fine on this step, however, the problem with that is that because it's being included in a subfolder called
extension
, the composer plugin civicrm-asset-plugin is not picking it up thus not extracting css/js files to theweb/libraries/civicrm
folder, therefore, the UI seems broken.One first approach would be to have a release with the contents of the
extension
folder directly on the root and also addcomposer.json
to that root folder.Thoughts?