WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.48k stars 4.18k forks source link

Add support for SVN sources in `@wordpress/env` #33499

Open juanmaguitar opened 3 years ago

juanmaguitar commented 3 years ago

What problem does this address?

I'm trying to create a .wp-env.json to recreate with the @wordpress/env package the development environment needed for DevHub as explained here https://make.wordpress.org/docs/handbook/devhub/

There are several plugins required for this environment that doesn't seem to have a .zip available and are only available through their SVN addresses, for example:

Is there any current way to deal with these SVN addresses or these types of internal plugins?

This is what I'm trying to use but the SVN sources are not recognized

.wp-env.json

{
  "plugins": [
    "WordPress/phpdoc-parser",
    "https://downloads.wordpress.org/plugin/jetpack.9.9.zip",
    "https://meta.svn.wordpress.org/sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/",
    "https://meta.svn.wordpress.org/sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-markdown/",
    "https://meta.svn.wordpress.org/sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-cli/"

  ],
  "themes": [
    "https://meta.svn.wordpress.org/sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/"
  ]
}

There is a conversation about this in https://github.com/WordPress/gutenberg/issues/20325 and the solution suggested was that .zip support should be enough for all cases but I think there are no .zip version of these internal plugins

What is your proposed solution?

Add support for SVN sources so internal plugins can also be managed by @wordpress/env

ryanwelcher commented 1 year ago

@juanmaguitar this seems like a feature request. I'm going to remove the docs-related labels but if I am mistaken, please let me know.