WordPress / WordPress/php-toolkit
Declarative Blueprints
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 61
- Forks
- 21
- Avg merge
- 19h 34m
- Merged PRs (30d)
- 7
Description
Blueprints offer an imperative step-by-step API which is powerful but also complex.
Hypothesis: 99% of Blueprints will only need to declare the necessary ingredients, regardless of the order in which they're applied.
Here's what it could look like:
{
"landingPage": "/wp-admin/post-new.php",
"plugins": [
"gutenberg",
"classic-editor",
"https://mysite.com/plugin.zip",
{ "resource": "url", "https://mysite.com/plugin.zip" }
],
"themes": [ "adventurer", "twentytwentyfour" ],
"activeTheme": "adventurer",
"login": true,
"siteOptions": {
"blogname": "My site!"
}
}
Let's use this issue to discuss, explore, and iterate on different formats.
Done is
The most important Playground features are covered by the declarative API. In particular:
- Plugins
- Themes
- Site options
- PHP constants
- Importing content
- Importing SQL (? to be determined)
- PHP.ini entries
- Writing a file tree from a URL/filesystem to a directory
- ...anything else?
Open questions
- Should this data format attempt to accept data like posts, custom post types, user meta, and so on? Would that be a feature creep? Or would a rudimentary support be useful, and for more features devs could switch to WXZ, SQL, or PHP code?
Benefits
- Simplicity
- A better foundation for Merging Blueprints in the future
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.
Research direction
No implementation files or tests are named. Start by reviewing the proposed JSON format, the listed feature coverage, and the open questions; done means the declarative API format and scope are agreed and the important Blueprint features are covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100