WordPress / WordPress/php-toolkit
Support running Blueprint packages containing a Blueprint and Assets used by the Blueprint
@brandonpayton is already working on this.
Since Nov 20, 2024.
- Dominant language
- PHP
- Stars
- 61
- Forks
- 21
- Avg merge
- 19h 34m
- Merged PRs (30d)
- 7
Description
What if we support running Blueprints from a Blueprint+Assets package where the Blueprint has access to assets included with the package zip?
More specifically:
- Create a zip containing a blueprint at a well-known path like
META-INF/blueprint.json(might as well use a special dir name like epub and Java .jar's use to avoid path conflicts). - Allow assets to be present anywhere else in the zip.
- Allow blueprint steps to reference those assets.
We could use this kind of packaging for Blueprints in general because it can be awkward to encode binary data or larger things entirely within a JSON file. Being , but one specific use case would be site exports or snapshots. Exports could be represented by WXR files, a SQLite database, or anything else, and the packaged blueprint would have steps for consuming the export.
For example, a package containing a blueprint, a WXR, and images under wp-content/uploads could have blueprint steps to do things like:
- Copy uploads into place
- Import WXR (possibly after adjusting media URLs if needed)
Perhaps Snapshots Support #9 could also be implemented using this kind of package.
What do you think?
@adamziel @bgrgicak @zaerl @akirk
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.