Comments (2)
Steps to update the existing bigram/seen-before
block
- Update wp-scripts using
npm run packages-update
- Move the block's src files into separate folder within
src/seen-before
- Move the block.json file into the same folder.
- Change the block's block.json file to refer to the appropriate entry-point and CSS
- Update server logic to load the block.json from the build folder
- Build using npm run dev
- Test
Not necessary since the block's not internationalized.
- Call wp_set_script_translations() for each block's editor-script
- Correct the filter function for load_script_textdomain_relative_path
Steps to add the new bigram/search-banter
block
- Create a new subdirectory
src/search-banter
- Copy and cobble source files from seen-before
- Add the block registration in bigram_block_block_init
- Develop the new dynamic block's server side rendering function
bigram_block_dynamic_block_search_banter
from bigram.
The lastest documentation for wp-scripts
implies that it's possible to create multiple entry points automatically
When using the start or build commands, the source code directory ( the default is ./src) and its subdirectories are scanned for the existence of block.json files. If one or more are found, they are treated a entry points and will be output into corresponding folders in the build directory. This allows for the creation of multiple blocks that use a single build process.
I couldn't get this to work.
No matter what value I entered for editorScript
in block.json
I got messages from the build and nothing was output.
In the end I used the same solution as for oik, a custom webpack.config.js
, but changed the server side registration to use the build
folder rather than the src
folder.
from bigram.
Related Issues (20)
- Standardise beginning letter HOT 1
- Export to CSV for statistical business
- Improve content of Social media message when sharing bigrams
- Support WordPress 5.0 and/or Gutenberg HOT 4
- Images uploaded through the Submit bigram form are incorrectly rotated
- Post content block badly formatted for posts with nothing before <!--more--> HOT 8
- Change _seen_before field to #theme=true for the SB: Second Byte FSE theme HOT 1
- Create a block to display the Seen before post meta data HOT 7
- bigram/reactsb: Create a block to display the react-SB output
- Sample bigram logic should work for block based content
- Submit Bigram: Detect and merge bigrams when uploading an image for an existing SB HOT 2
- Avoid Doing it wrong message from `bigram_pre_get_posts()`
- Support PHP 8.1, PHP 8.2 and PHP 8.3 HOT 1
- Update wp-scripts to latest version HOT 2
- Styled border problem
- Add two hierarchical taxonomies - supplied-by and synthesised-by HOT 3
- SB's in alt keywords should not be considered for creating links HOT 3
- SQLey blocks HOT 2
- Some bigrams not correctly detected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bigram.