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 a block based theme option #238

Merged
merged 22 commits into from
Jan 20, 2025
Merged

Add a block based theme option #238

merged 22 commits into from
Jan 20, 2025

Conversation

fabiankaegy
Copy link
Member

@fabiankaegy fabiankaegy commented Sep 30, 2024

Description of the Change

Adds a new Block Theme scaffold to the repository

Changelog Entry

Added - A new Block-Based Theme Scaffold

Credits

Props @fabiankaegy @tobeycodes @darylldoyle @colinswinney

@fabiankaegy fabiankaegy added enhancement New feature or request Internal Review labels Sep 30, 2024
@fabiankaegy fabiankaegy self-assigned this Sep 30, 2024
@fabiankaegy
Copy link
Member Author

CC: @10up/editorial-engineering Would love to get your all's input on this :)

Also CC: @darylldoyle we can use this new scaffold to update how we are doing things. So if we want to introduce larger coding style / structural changes this is a time where we can include stuff like that :)

@joesnellpdx
Copy link
Contributor

@fabiankaegy

I'll also share with the FEE Best Practices WG - as some of the suggested and similar changes here have been discussed in that WG

themes/10up-block-theme/includes/core.php Outdated Show resolved Hide resolved
themes/10up-block-theme/functions.php Show resolved Hide resolved
themes/10up-block-theme/phpcs.xml Outdated Show resolved Hide resolved
Copy link
Member

@tobeycodes tobeycodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fabiankaegy I saw this PR in my notifications and thought I'd leave some comments. Feel free to disregard anything that is not relevant. It looks great! Excited for block themes

themes/10up-block-theme/.lintstagedrc.json Outdated Show resolved Hide resolved
themes/10up-block-theme/.lintstagedrc.json Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought: we should add this to the .editorconfig file and make sure it's formatted like the other rc files.

https://github.com/10up/wp-scaffold/blob/trunk/.editorconfig#L10

themes/10up-block-theme/.nvmrc Outdated Show resolved Hide resolved
themes/10up-block-theme/functions.php Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: should we be using a cache for performance (e.g. https://github.com/roots/bedrock-autoloader/blob/master/src/Autoloader.php) and perhaps RecursiveDirectoryIterator instead of glob?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree here. @fabiankaegy can we get an issue to follow up on this? It's not block theme dependent, so no need to block this PR

themes/10up-block-theme/includes/blocks.php Outdated Show resolved Hide resolved
themes/10up-block-theme/includes/blocks.php Outdated Show resolved Hide resolved
themes/10up-block-theme/includes/core.php Outdated Show resolved Hide resolved
@fabiankaegy fabiankaegy marked this pull request as ready for review January 2, 2025 09:57
@fabiankaegy
Copy link
Member Author

This should be ready for another set of reviews :)

Would love to get it merged soon in the new year 🚀

Copy link
Member

@tobeycodes tobeycodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. I think anything minor we can follow up in further PRs

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree here. @fabiankaegy can we get an issue to follow up on this? It's not block theme dependent, so no need to block this PR

themes/10up-block-theme/style.css Outdated Show resolved Hide resolved
@fabiankaegy fabiankaegy merged commit 890ab03 into trunk Jan 20, 2025
6 checks passed
@fabiankaegy fabiankaegy deleted the feature/block-theme branch January 20, 2025 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Internal Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants