Guide: How I structure my WP Gutenberg & WC Blocks project


The build process is reliant upon the editorScript param within the block.json

Then it runs the checkoutRegisterBlock and registerBlockType.

Whats in the build folder are blocks. I always prepend it with checkout-block- to know the naming scheme and how the block is shown differently.

I’ve yet to add the slot fill on the editor side using this folder structure but it’ll just be added like update-options.js is added.

I would love to add functionality by adding my own command line tool to propagate these build folder structures. Also, I grow weary of php’s lack of ability of knowing whats going on viz. TypeScript can infer types and know if a path is errant.

Getting Ahead: Your first 2,000 dollars on Upwork

$4.99

Are you a developer dreaming of location independence and a lucrative career? This ebook is your roadmap to success on Upwork, one of the world’s leading freelance platforms. Whether you’re a seasoned coder or just starting out, we’ll guide you through the most effective strategies to reach that crucial $2,000 milestone.

Category:

One response to “Guide: How I structure my WP Gutenberg & WC Blocks project”

Leave a Reply