-
Notifications
You must be signed in to change notification settings - Fork 22
Open
π‘ Idea / Suggestion
Copy link
Labels
Description
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:
10up-toolkit project init-theme
- Clone the https://github.com/10up/wp-scaffold repo into
tmp
- Delete everything apart from the theme
- Run the renaming script.
- Move the renamed theme to the desired location.
- Clone the https://github.com/10up/wp-scaffold repo into
10up-toolkit project init-plugin
- Clone the https://github.com/10up/wp-scaffold repo into
tmp
- Delete everything apart from the plugin within
mu-plugins
- Run the renaming script.
- Move the renamed plugin to the desired location.
- Clone the https://github.com/10up/wp-scaffold repo into
Describe alternatives you've considered
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
nicholasiofabiankaegy