We encourage you to contribute your own Blueprints to this repository!
Not sure how? Check out the Blueprints 101.
To keep the submission process smooth, please follow these guidelines:
Submit a Pull Request (PR) with your Blueprint. Consult this page Creating a pull request if you need a refresher on the process.
The PR should contain:
- A single
blueprint.json
file under the pathblueprints/your-blueprint-name/blueprint.json
(like the examples here). - All the static files (WXR, ZIP, JPG, etc.) your Blueprint references. The static files must be loaded via the
https://raw.githubusercontent.com
URL pointing to your branch.raw.githubusercontent.com
is a service that allows you to serve files directly from your GitHub repository. This is useful for loading static files in Blueprints. The URLs follow theraw.luolix.top/${user}/${repo}/${branch}/${path}
pattern.
For example, if you want to load a content-export.xml file, you create a new folder in the blueprints directory, /woocommerce-subscription (the name should correpond to the name of the blueprint). The folder must hold two files:
- A
blueprints/woocommerce-subscriptions/blueprint.json
file - A
blueprints/woocommerce-subscription/content-export.xml
file
Assuming your branch is named /woo-subscription/
, the Blueprint should reference as follows:
{
"steps": [
{
"step": "importWxr",
"file": {
"resource": "url",
"url": "https://raw.githubusercontent.com/wordpress/blueprints/woo-subscriptions/blueprints/woocommerce-subscriptions/content-export.xml"
}
}
]
}
By submitting a Blueprint, you agree to license it under GPLv2 or later license.
Make sure to correctly indent your Blueprints using tabs using a code formatter like Prettier. This repository ships a .prettierrc
file you could use. This is mostly to help the reviewers understand your Blueprint better. Every accepted and merged Blueprint will automatically be re-formatted using the .prettierrc
file.
Each Blueprint should include metadata within the top-level "meta" key of the blueprint.json
file. Note that metadata is not required for all Blueprints, only for Blueprints submitted to this gallery.
Here's what's required:
- Title: a clear and concise name for your Blueprint.
- Author: your GitHub username, to let others know who created the Blueprint.
Optionally, you can add:
- Description: a brief explanation of what the Blueprint offers.
- Categories: specify relevant categories to help users find your Blueprint in the future Blueprints section on WordPress.org.
Here's an example:
{
"meta": {
"title": "WooCommerce Developer Environment",
"description": "A local development environment for WooCommerce that includes WP-CLI.",
"author": "zieladam",
"categories": ["woocommerce", "developer environment"]
}
}
If you have questions or comments, open a new issue in this repository.