-
Notifications
You must be signed in to change notification settings - Fork 2
Blueprints v2 all-PHP Runner #9
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DataReferences
40f072a
to
695dc55
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Blueprints v2 runner
Warning
This is an early alpha version. Proceed with caution!
This PR ships a reference implementation of a subset of the Blueprints version 2 spec. It consists of:
These tools are compatible with PHP 7.2+ on Mac, Linux, Windows and require no PHP extensions. Libraries for processing ZIP, HTTP, XML, HTML, and Git are included.
This huge PR also:
Splitting it into atomic changes and documenting them could easily take a week. Therefore I apologize, but I am not going to do that. Let's treat it as the new initial commit and apply atomic changes from this point forward.
Remaining work
First and foremost: stabilize this runner with a large and meaningful suite of tests.
Other than that:
In this PR
Independently of this PR
@TODO
comments in a way that can be discussed and trackedOut of scope until the baseline functionality works
Using it
Download blueprints.phar from the latest alpha release and follow the instructions there.
For running from source, use this command:
Here's an example of using it to create a new site (with a complex v1 Blueprint to showcase compatibility):
CleanShot.2025-05-12.at.21.17.02.mp4
The command above created a new WordPress site in a
newsite
directory. Here's what it did under the hood:With another Blueprint, you could also create new post types, source data directly from a git repo, and more.
Scripts
Bundle
blueprints.phar
To build a single
blueprints.phar
executable, install box and run:Regenerate JSON Schema based on TypeScript types
This PR ships a copy of the Blueprints v2 proposal including the TypeScript types. To regenerate the JSON schema used to validate input Blueprints, run: