bobbingwide / sb-starting-block Goto Github PK
View Code? Open in Web Editor NEWStarting point for a single block server side rendered block
License: Apache License 2.0
Starting point for a single block server side rendered block
License: Apache License 2.0
wp-scripts
has been improved considerably since I created sb-starting-block.
It would appear that it now supports multiple blocks per plugin.
I first noticed this change when I updated the package in bobbingwide/oik-bob-bing-wide#45
While converting oik, oik-bobbing-wide, oik-blocks, oik-css and other plugins to work correctly for multiple blocks registered from several block.json
files and then to internationalize and localize, I discovered that I needed more code than originally developed for sb-starting-block.
oik-sb/sb-starting-block
and oik-sb/second-block
oik-sb/sb-starting-block
)block.json
using apiVersion:2
supports
attributes, including color
and typography
.en_GB
and bb_BB
oik-sb/second-block
, originally built using npx @wordpress/create-block
oik-sb/sb-starting-block
sb-starting-block.php
with i18n and l10n logicoik-sb/second-block
- removing CSS and adding several supports
attributes - with slightly different values from oik-sb/sb-starting-block
.Update code to run without problems in PHP 8.1 and 8.2, with WordPress 6.4.1
npx @wordpress/create-block
is OK but...
package.json
The current method requires
Would it be easier to start with a starting block that already has Server Side Rendering built in and copy/cobble that?
If so, what are the steps?
This issue is to attempt to find out.
starting
to my-block-name
oik-sb/sb-starting-block
. Note: the oik-sb
block prefix is intentionaloik_sb_sb_starting
npm run dev
and npm run build
get_block_wrapper_attributes()
get_block_wrapper_attributes()
aboveIn order to test the oik-b2p "build to plugin" routine we need a new block.
This will be a block called oik-nivo-slider/nivo
This will be a server side rendered block to replace the prototype block developed as oik-block/nivo
and delivered as part of the oik-blocks plugin.
See https://github.com/bobbingwide/oik-b2p/issues
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.