From d54d69f231515a6936e4d79824819d23a6b54c21 Mon Sep 17 00:00:00 2001 From: Paul Kilmurray Date: Wed, 20 Mar 2024 11:45:46 +0000 Subject: [PATCH] add blueprint.json --- .wordpress-org/blueprint.json | 55 +++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .wordpress-org/blueprint.json diff --git a/.wordpress-org/blueprint.json b/.wordpress-org/blueprint.json new file mode 100644 index 00000000..b3367ebe --- /dev/null +++ b/.wordpress-org/blueprint.json @@ -0,0 +1,55 @@ +{ + "landingPage": "/pos", + "preferredVersions": { + "php": "8.0", + "wp": "latest" + }, + "phpExtensionBundles": [ + "kitchen-sink" + ], + "features": { + "networking": true + }, + "steps": [ + { + "step": "login", + "username": "admin", + "password": "password" + }, + { + "step": "installPlugin", + "pluginZipFile": { + "resource": "wordpress.org/plugins", + "slug": "woocommerce" + }, + "options": { + "activate": true + } + }, + { + "step": "installPlugin", + "pluginZipFile": { + "resource": "wordpress.org/plugins", + "slug": "woocommerce-pos" + }, + "options": { + "activate": true + } + }, + { + "step": "setSiteOptions", + "options": { + "permalink_structure": "/%year%/%monthnum%/%day%/%postname%/", + "woocommerce_calc_taxes": "yes" + } + }, + { + "step": "wp-cli", + "command": "wp wc product import wp-content/plugins/woocommerce/sample-data/sample_products.csv --user=admin" + }, + { + "step": "runPHP", + "code": "insert(\n $wpdb->prefix . 'woocommerce_tax_rates',\n array(\n 'tax_rate_country' => 'US',\n 'tax_rate_state' => '',\n 'tax_rate' => '5.0000',\n 'tax_rate_name' => 'Sales Tax',\n 'tax_rate_priority' => '1',\n 'tax_rate_compound' => '0',\n 'tax_rate_shipping' => '1',\n 'tax_rate_order' => '0',\n 'tax_rate_class' => ''\n )\n);\n" + } + ] +}