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

Automate the process of renaming the theme and plugin to match the project name #204

Open
1 task done
dmtrmrv opened this issue Dec 7, 2023 · 3 comments
Open
1 task done

Comments

@dmtrmrv
Copy link
Contributor

dmtrmrv commented Dec 7, 2023

Is your enhancement related to a problem? Please describe.

When starting a new project, engineers should change the name of the theme and plugin to match the project's name. This includes changing names in many places, like the theme folder, the domain, the theme name in the style.css file, and other parts.

It's best to have a clear, standard way to do this, like using a script or following a step-by-step guide.

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@claytoncollie
Copy link
Contributor

What if we changed all of the namespaces/text-domains/prefices/slugs in the scaffold and accounted for all of the variations? They could also be listed in the README to make sure they were replaced. This would still be a manual process but I think this needs to happen before adding automation. The variations below allow for an exact case search and replacement within the editor.

Namespace

ClientName\ProjectName

Text domain

project-name

Prefix

project_name

Constant

PROJECT_NAME

@dmtrmrv
Copy link
Contributor Author

dmtrmrv commented Jan 3, 2024

I agree with the phased approach. Makes perfect sense.

@tobeycodes
Copy link
Member

My personal opinion is that we should discourage this outside of perhaps changing the folder name and anything public such as the style.css. The more a project diverges from the scaffold the harder it is to keep up to date. I would love to see a world we are able to from a CLI command, codemod or package update we can bring in the latest changes from the scaffold into existing projects.

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

3 participants