A fresh, standalone WordPress Gutenberg block plugin built on the WordPress Interactivity API (V3 architecture).
WordPress.org: wordpress.org/plugins/spectra-blocks
| Dependency | Minimum |
|---|---|
| PHP | 8.1 |
| WordPress | 6.6 |
| Node.js | 20+ |
| Composer | 2.x |
# 1. Clone the repository
git clone git@github.com:brainstormforce/wp-spectra-blocks.git
cd spectra-blocks
# 2. Install PHP dependencies (requires SSH access to BSF private repos)
composer install
# 3. Install JS dependencies and build
npm install
npm run build
# 4. Build admin dashboard
cd admin && npm install && npm run build && cd ..| Command | Description |
|---|---|
npm run build |
Production build (blocks + extensions) |
npm run build:fresh |
Clean build (clears build/ first) |
npm run start |
Watch mode for development |
npm run lint:js |
Lint JavaScript |
npm run lint:css |
Lint CSS/SCSS |
npm run zip |
Full build + create release zip |
npm run zipThis runs the full build pipeline and produces spectra-blocks.x.x.x.zip ready for WordPress.org upload.
Note:
composer installrequires SSH access to BSF private GitHub repositories. Thelib/directory is populated by Composer and is not committed to this repo.
All blocks use the spectra/ namespace:
spectra/container
spectra/accordion
spectra/tabs
spectra/countdown
spectra/counter
spectra/slider
spectra/modal
spectra/popup-builder
spectra/list
spectra/buttons
spectra/google-map
spectra/icons
spectra/separator
...