Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
darylldoyle opened this issue Sep 11, 2024 · 0 comments
Open
1 task done

Comments

@darylldoyle
Copy link
Contributor

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
  • 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.

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant