Convert init.sh into a Composer PHP script for create-project
Opened this issue · 2 comments
kasparsd commented
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
.
derekherman commented
The Bash script accepts input from the command line, how would this work with composer create-project
?
kasparsd commented
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:
block-scaffolding-wp/scripts/composer/PluginScaffolder.php
Lines 13 to 42 in cc49ce9