-
Notifications
You must be signed in to change notification settings - Fork 3
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
Keep theme code in a subdirectory #3
Comments
Can you please elaborate on this one? This already has the theme in a sub-directory. The prototype is specifically attempting to design a system where some themes, plugins and other dependencies would be developed as part of the same repo. The reason for that is to avoid the composer version update dance whenever a set of dependencies are updated. Do you know any projects that do this? |
Yes. Timber: https://github.com/timber/starter-theme/tree/2.x Currently two kind of files are mixed.
Simply create a subdirectory inside the theme and move theme code into that directory: https://github.com/timber/starter-theme/tree/2.x/theme So clean, @kasparsd. So clean! |
🤫 WP core's code that finds this subdirectory automatically: |
e.g.
theme
like in https://github.com/timber/starter-theme/tree/2.x
Again: separation of config files, documents -------------- and -------------- application code.
🦸🏻♂️ This is a secret WordPress core feature, needs no configuration at all.
The text was updated successfully, but these errors were encountered: