block-scaffolding-wp
block-scaffolding-wp copied to clipboard
Convert init.sh into a Composer PHP script for create-project
Convert the logic in init.sh
into a Composer PHP script that would allow us to simplify the setup down to a single command of composer create-project xwp/block-scaffolding-wp
.
The Bash script accepts input from the command line, how would this work with composer create-project
?
This requires converting the Bash script into a PHP script that is cross-platform. Here is the initial prototype for it that can be updated to have the feature parity with what is currently in the init.sh
. Notice how it prompts for things:
https://github.com/xwp/block-scaffolding-wp/blob/cc49ce9e8f3f8b45df366348d034740fc68feb3e/scripts/composer/PluginScaffolder.php#L13-L42