You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have at least 3 different kinds of blocks we create often:
Static, vanilla JS
Dynamic, vanilla JS with PHP render on front-end
ACF, new formula that uses block.json
Ideally, we could create templates for these 3 block types and put them somewhere in the scaffolding that could then be utilized by an npm command to scaffold a block.
We have at least 3 different kinds of blocks we create often:
Ideally, we could create templates for these 3 block types and put them somewhere in the scaffolding that could then be utilized by an npm command to scaffold a block.
Something like:
We should be able to add the command to
scripts
in package.json in order to point to the correct template path and block src path.See https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/
The text was updated successfully, but these errors were encountered: