ahmadawais / create-guten-block

📦 A zero-configuration #0CJS developer toolkit for building WordPress Gutenberg block plugins.
https://Awais.dev/cgb-post
MIT License
3.15k stars 327 forks source link

Is it already possible to include a register_block_patterns() within this package? #300

Open blachawk opened 3 years ago

blachawk commented 3 years ago

In addition to what create-guten-block alredy does today, is it also possible to also include custom made block patterns within this package? If so, can you provide an example of how that would be incorporated?

From the block.js file, I can see registerBlockType() is ready for us to modify. Would it hurt anything if we added register_block_patterns() right after it? or is that a bad idea?

I would like to bundle all of my blocks and block patterns in one solution. Was hoping I could do it here.