Closed andergmartins closed 1 year ago
Review the doc https://publishpress.github.io/docs/development/preparing-composer and make more tests
Questions from a client:
Is there a way to not require SSH keys for private repos?
We can authenticate to Pro repository using Github's OAuth, personal token. We need to update the docs to include:
https://getcomposer.org/doc/articles/authentication-for-private-packages.md#github-oauth
The vendor folder is not publicly accessible. Can we still use it?
Regarding the assets issues, and structure we have some options:
2 and 3 sounds more feasible to me.
cc @agapetry
Instead of using https://github.com/publishpress/wordpress-vendor-assets-handler maybe using a composer script post-install-cmd
and post-update-cmd
for copying the required assets from vendor dir to a folder in the project root is a simpler solution. The commands might be PHP based, making it easier to run on multiple platforms (like "post-update-cmd": "WCM\\WPStarter\\Setup::run"
)
The plugin already can be installed as a library but we need to make it possible to install as a WP plugin. The free plugin can be installed using the package provided by
http://wpackagist.org
:But the pro plugin needs to be updated for allowing that. But the Free plugin needs to be kept as a library inside the Pro plugin, instead of being installed a plugin.