Skip to content
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

Add a virtual package #15

Closed
3 tasks done
mcaskill opened this issue May 15, 2020 · 1 comment
Closed
3 tasks done

Add a virtual package #15

mcaskill opened this issue May 15, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@mcaskill
Copy link

Summary

Add a provide section with wordpress/core-implementation as a virtual package to all builds of WordPress.

Example:

"provide": {
    "wordpress/core-implementation": "5.4.1"
}

Motivation

This can be useful for WordPress plugins, themes, and libraries that are managed by Composer.

A library, such as johnbillion/extended-cpts, could list the WordPress versions that conflict that package:

"conflict": {
    "wordpress/core-implementation": "<4.8"
}

A type of boilerplate could even require WordPress:

"require": {
    "php": ">=7.1",
    "wordpress/core-implementation": ">=5.0"
}

Additional context

John Bloch implemented this feature a few years ago (johnpbloch/build-wp#3)

@retlehs retlehs added the enhancement New feature or request label May 16, 2020
@swalkinshaw
Copy link
Member

Closing in favour of #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants