> For the complete documentation index, see [llms.txt](https://whoisandywhite.gitbook.io/porterwp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whoisandywhite.gitbook.io/porterwp/tooling/make-sh.md). Agents can also search and read this documentation through its [MCP server](https://whoisandywhite.gitbook.io/porterwp/~gitbook/mcp).

# make.sh block scaffolder

`make.sh` is supplied by the PorterWP public theme skeleton; it is not packaged in the premium plugin ZIP and is not required at runtime.

From the skeleton's block directory, run:

```bash
cd porter/blocks
bash make.sh <block-slug> [category]
```

For example:

```bash
bash make.sh testimonial-grid components
```

The current skeleton copies its `_block-base` template, replaces the name tokens, creates the destination block metadata and adds the starter icon/assets. The optional category selects the destination folder; the skeleton defaults to `components`.

The supplied script uses Bash syntax and the macOS/BSD form of `sed -i`, so run this version in its supported macOS environment. On Linux, adapt the in-place `sed` calls for GNU sed before using it; invoking the script through a generic `sh` such as `dash` is not supported.

After scaffolding:

1. Check the generated `block.json` name, title, text domain and ACF metadata.
2. Add or sync the block's field group in its `acf-json/` directory.
3. Implement the render callback or template declared by `block.json`/`init.php`.
4. Compile the block SCSS/JavaScript with the theme skeleton's build tasks.
5. Confirm the destination folder is included by `blocks.settings.folders` when that setting is non-empty.

PorterWP discovers and registers the finished block on `init`; the scaffolder itself does not run on production requests.
