Last active
August 13, 2021 14:25
-
-
Save douglas-johnson/22415298580ace47c681872fbed2a486 to your computer and use it in GitHub Desktop.
This file contains 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
# Install and activate typical plugins. | |
plugins: | |
wp plugin delete hello akismet; \ | |
wp plugin install debug-bar disable-emojis jetpack query-monitor woocommerce --activate; \ | |
# Install, copy and clean up drop-ins. | |
cache-plugins: | |
wp plugin install batcache memcached-redux; \ | |
cp wp-content/plugins/batcache/advanced-cache.php wp-content/advanced-cache.php; \ | |
cp wp-content/plugins/memcached-redux/object-cache.php wp-content/object-cache.php; \ | |
wp plugin delete batcache memcached-redux; \ | |
# Install and activate theme testing plugins. | |
theme-plugins: | |
wp plugin install theme-check theme-sniffer rtl-tester --activate; \ | |
# Import theme test content provided by WordPress theme review team. | |
# https://github.com/WPTRT/theme-unit-test | |
theme-content: | |
wp plugin install wordpress-importer --activate; | |
curl -O https://raw.githubusercontent.com/WPTRT/theme-unit-test/master/themeunittestdata.wordpress.xml; \ | |
wp import themeunittestdata.wordpress.xml --authors=create --skip=image_resize; \ | |
rm themeunittestdata.wordpress.xml; \ | |
# Import sampel products provided by Woocommerce. | |
# https://github.com/woocommerce/woocommerce | |
theme-products: | |
wp plugin install wordpress-importer --activate; \ | |
curl -O https://raw.githubusercontent.com/woocommerce/woocommerce/master/sample-data/sample_products.xml; \ | |
wp import sample_products.xml --authors=create --skip=image_resize; \ | |
rm sample_products.xml; \ | |
# Add example theme using Underscores with Woocommerce support. | |
theme-example: | |
wp scaffold _s example --theme_name="Example" --woocommerce; \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment