10up / 10up-toolkit

Official 10up asset building toolkit.
114 stars 19 forks source link

Add `init-theme` and `init-plugin` commands to the `10up-toolkit project` scripts #424

Open darylldoyle opened 1 month ago

darylldoyle commented 1 month ago

Is your enhancement related to a problem? Please describe.

The 10up-toolkit project init command is great, and made it simple for engineers to clone the https://github.com/10up/wp-scaffold with all the string replacements already done. Often, engineers want to create a new theme or plugin within a pre-existing project. Currently the only way to do this is clone the https://github.com/10up/wp-scaffold repo, pull out the theme/plugin and rename everything manually.

Since the project init command already has all the renaming logic needed (here), it should be trivial to extend it to add the additional options, saving engineers time and effort.

Designs

I'd assume something like the following:

Describe alternatives you've considered

No response

Code of Conduct