https://github.com/valeravilks/celestial/releases/tag/1.0.0
It finally works the way I wanted, and I’ve pretty much nailed down the architecture. I can release version 1.0.0 and then fix some of the remaining bugs.
As a result, I came to the conclusion that I need to make it as thin as possible using official WordPress packages. Fewer dependencies, less support, more transparency. Essentially, it’s a customized @wordpress/scripts and @wordpress/env with a specific structure that I found to be the most effective. Plus, there’s composer, linters for styles and JavaScript, and a code sniffer.
I previously considered collecting my best practices and examples in this repo, but I decided against it. I think the advantage is transparency and the lack of unnecessary clutter. You can now create your own blocks or write a theme using the exact methodology you want.