Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/jamesbrooksco/battiblocks/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Custom Gutenberg blocks for WordPress.
Requirements
- WordPress 6.3+
- Node.js 18+
Setup
-
Install dependencies:
npm install -
Build assets for production:
npm run build -
Start development watcher:
npm start
Adding Blocks
- Add a new folder under
src/blocks/with ablock.jsonand block files. - Export the block from
src/index.js. - Run
npm run buildto generate assets inbuild/.
Plugin Structure
battiblocks.phpplugin bootstrapblocks.phpblock registrationsrc/block sourcesbuild/compiled assets