-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish on Packagist #2649
Comments
@swissspidy thanks for this, although it's not so straightforward unfortunately:
In the above link you'll also see I added a CircleCI integration to build front end assets and push tagged releases. I'm not 100% sure how easy it'll be to convert to work with Travis but happy to try and help there. |
Thanks @roborourke, that's a good point. I guess we would need to upload two versions per release then: one fully built, and one only with the JS built. Having Travis CI do the builds is also something I've been looking into (see #1840). |
My diff link was getting mangled - fixed now! |
I'm sure you're aware, but there are also |
For a proper Composer project that's not of much help I think. If a project requires packages A and B, and both packages require the same dependency, e.g. PHP CSS Parser, the dependency would be downloaded once into the project's Certainly, #1867 would somewhat work around this, but in a project that only uses Composer that would result in unnecessarily duplicated code. I have to admit that manually adjusting the workflow two have two different build files would be a bit of a maintenance burden for us. I'll see if I can have another look at #1840 to automate all of this. In the long run, this would also help for #2315, because a Composer project could include this plugin as a dependency, but also some other package that requires the same shared AMP PHP library. |
One thing that needs to be kept in mind with Composer: we are currently using |
@roborourke Haven't tested them yet, but here are two packages I just generated, one for use with composer, one standalone: |
Relates to #4215. |
Any news? |
@schlessera and @pierlon have started digging into this due to #5609, where the upgrade to Composer v2 started to break site(s) that are assembled with Composer. |
Looks like the Human Made folks have forked this repository in order to make it easier for them to use it with Composer. For this, they have published it on Packagist:
https://github.com/humanmade/amp-wp
https://packagist.org/packages/humanmade/amp
They don't want to rely on a third-party repository like WordPress Packagist to get their dependencies. Plus, since that site only mirrors the WordPress.org repository, you won't get pre-release version through it.
To make lives of developers and agencies using Composer easier, we could publish the plugin on Packagist ourselves.
Doing so is pretty straightforward, and requires no code change whatsoever. In fact, all that's needed is hitting a button on https://packagist.org/packages/submit. Since we already use GitHub releases to share the built ZIP files, Composer will automatically pick these up when downloading packages. So people will always get the proper version.
The text was updated successfully, but these errors were encountered: