bobbingwide / sb-children-block

List children of the current content as links.
2 stars 0 forks source link

Prepare for multiple blocks #2

Closed bobbingwide closed 4 years ago

bobbingwide commented 4 years ago

I want to extend the plugin to deliver additional blocks.

In my oik-blocks plugin each block is in its own subdirectory of the src folder and there's an index.js file that imports these directories. I assume that we can do the same using the wp-scripts solution.

The first stage is to move the files in the src directory into src\children-blocks and create a new src\index.js

import './children-block';

and rebuild and retest.

bobbingwide commented 4 years ago

I'm going to close this even though there are no automated tests.