Skip to content

Block CI debugging - #219

Draft
matt-bernhardt wants to merge 19 commits into
masterfrom
block-remix
Draft

Block CI debugging#219
matt-bernhardt wants to merge 19 commits into
masterfrom
block-remix

Conversation

@matt-bernhardt

Copy link
Copy Markdown
Member

DO NOT USE - this is intended for debugging issues with the CI workflows.

djanelle-mit and others added 18 commits August 31, 2026 16:10
This sets up a root-level package.json that will manage all the plugins' internal dependencies
via workspaces. It allows us to only have one package-lock.json file, rather than one per plugin,
which makes keeping dependencies in sync across plugins easier to achieve.

It also saves a bit of space in the respository, as these files can be tens of thousands of lines long and largely duplicative.
** Why are these changes being introduced:

We already have a plugin that implements the hours ecosystem, so it
makes sense to define the new hours block for the homepage within that
plugin, rather than in a separate plugin.

** How does this address that need:

This moves the content of the hours block into the existing hours
plugin. As part of this move, a few things get adjusted:

* Package.json at the repostitory root gets the new plugin path added to
its list of workspaces

* Because the hours plugin already uses the src/ folder to define PHP
classes, it doesn't make sense to re-use that location for the block
source files. We instead take a page from WordPress itself, and place
those materials in the blocks/ folder.

* Because the path to the block materials changes, we need to update the
package.json file in the plugin to pass the --source-path argument to
the build and start scripts.

* The PHP script at the plugin root needs to merge with the existing
plugin. The only unique part from the new plugin is the block
block registration function (which is hooked to the init action) - so we
use that and leave the rest of the boilerplate behind.

* The readme.txt file from the old plugin is no longer needed, as this
is a file we don't really use in this monorepo.

* We also re-run the build command to make sure that everything is wired
up correctly. This updates the hash and index.js file.

* All of this means we bump the plugin version number.

** Document any side effects to this change:

Hopefully none...
@matt-bernhardt matt-bernhardt changed the title Block remix Block CI debugging Sep 4, 2026
(Squashed to remove build artifacts for on block)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants