WordPress / playground-tools

GNU General Public License v2.0
127 stars 38 forks source link

wp-now: support yml for blueprints #313

Open lgersman opened 2 weeks ago

lgersman commented 2 weeks ago

Providing (additional) yml support for blueprint definition would greatly improve the usability of blueprints.

yml supports:

{
  "step": "writeFile",
  "path": "/wordpress/wp-content/mu-plugins/rewrite.php",
  "data": "<?php /* Use pretty permalinks */ add_action( 'after_setup_theme', function() { global $wp_rewrite; $wp_rewrite->set_permalink_structure('/%postname%/'); $wp_rewrite->flush_rules(); } 
  );"
}

This multiline data could be written in yml in true multiline fashion which is much more readable