Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Plugin definition discovery: local location outside of <plugin>/.versionpress #1176

@borekb

Description

@borekb

#1036 implements a discovery method that expects plugin definition files (schema.yml, actions.yml etc.) to be located at <some-plugin>/.versionpress. There should also be an external location from where the definitions could be loaded, two initial candidates being:

wp-content/plugins/.versionpress
wp-content/vpdb/.versionpress (or some other folder name)

I like the plugins folder better because not everything in a plugin definition is tied to a DB and vpdb is very database-specific.

Inside it, it would probably just be directories for plugins so the complete example would look like:

wp-content/plugins/.versionpress
    akismet/
        schema.yml
        actions.yml
    woocommerce/
        schema.yml
        actions.yml
    ...

After this is implemented, there will be an online repo of these definitions, sort of like DefinitelyTyped for TypeScript. VersionPress will be downloading plugin definitions from that repo to this local structure. See #1243.


🏁 PR #1246

Metadata

Metadata

Assignees

Labels

featureNew feature. See "improvement" for updates of existing functionality.noteworthySignificant issue or PR, to be highlighted in release notesplugin supportIssues related to the main feature of 4.0, plugin support.scope: coreCore VersionPress functionality like tracking actions, creating Git commits, etc.size: mEffort: a day or two

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions