-
Notifications
You must be signed in to change notification settings - Fork 50
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
Simplify scaffold #207
Comments
Strong agree from my end on the duplication between the plugin and theme. I run into so manny projects where the empty JS / CSS files that get loaded in the plugin and theme aren't even getting removed |
I also 100% agree with this, but, I don't think it's an easy solve. My feeling on assets is that if it renders on the front-end it should live within the theme whereas if it only affects the admin, then it should be in the mu-plugin. I also feel that the crux of the issue is highlighted in your message
Whilst I completely agree with this, I don't think it's possible to enforce it. I think this has to be something that's documented and taught, rather than rules that we can set up within the codebase. Perhaps we should put some docs together around how to structure a site setup? Finally, R.E. the mix of functional and OOP code, I'm with you - we should put together a PR to move this all to OOP code IMO. Then we can get rid of that dreaded |
@darylldoyle I agree that it is not an easy solve but I think part of the problem comes from analysis paralysis with so much code duplicated across the scaffold. If we give too many options to solve the same problem they will never be solved in the same way. I don't think documentation is something that can solve this. I think being more opinionated + documentation will help to solve this problem. I think CPT/Taxonomies are a good example here, where we need to be opinionated with a CLI command that will do everything for us
Agreed. Just deleting the frontend folders in the mu-plugin is a small start to moving in the right direction. |
I am starting this issue as a discussion. This scaffold has been used on several client projects and I feel like there is a lot of confusion from engineers on how to use it best. A few things I have noticed using wp-scaffold:
These are obviously just my opinions and others might not share these thoughts but I wanted to open up this discussion to see what others think.
The text was updated successfully, but these errors were encountered: