WordPress/wp-includes/blocks
gziolo 327852393a Build: Split packages and blocks to their webpack configs
It aligns with the changes proposed added in Gutenberg: https://github.com/WordPress/gutenberg/pull/33293.

The idea here is to split the growing webpack config into two parts: blocks and  packages.

We need to add handling for JavaScript files that are going to be used with blocks on the frontend. They didn't work quite well with the current setup for entry points created for packages.

As part of the effort, it adds support for `viewScript` in `block.json` metadata file that is later translated to `$view_script` in `WP_Block_Type` class and exposed as `view_script` from the REST API endpoint for block types.

Props youknowriad, desrosj, aristath.
Fixes #53690.


Built from https://develop.svn.wordpress.org/trunk@51501


git-svn-id: http://core.svn.wordpress.org/trunk@51112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-28 10:06:59 +00:00
..
archives
audio
block
button Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
buttons
calendar
categories
code Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
column
columns
cover
embed
file Build: Split packages and blocks to their webpack configs 2021-07-28 10:06:59 +00:00
freeform
gallery
group
heading Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
html
image
latest-comments Block Editor: Package updates including fixes from Gutenberg for WordPress 5.8 RC1. 2021-06-28 16:01:36 +00:00
latest-posts Block Editor: Package updates including fixes from Gutenberg for WordPress 5.8 RC1. 2021-06-28 16:01:36 +00:00
legacy-widget Block Editor: Update the WordPress packages with the fixes for 5.8 beta 2. 2021-06-15 08:52:30 +00:00
list Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
loginout Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
media-text
missing
more
nextpage
page-list Block Editor: Include the page list block server-side code. 2021-06-08 18:13:01 +00:00
paragraph Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
post-content Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
post-date Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
post-excerpt Block Editor: Backport fixes targetted for WordPress 5.8 RC4. 2021-07-15 18:55:29 +00:00
post-featured-image Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
post-template Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
post-terms Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
post-title Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
preformatted Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
pullquote
query Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
query-pagination
query-pagination-next Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
query-pagination-numbers
query-pagination-previous Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
query-title Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
quote
rss
search
separator
shortcode Block Editor: Include the latest fixes targetted for 5.8 RC1. 2021-06-29 15:53:43 +00:00
site-logo Block Editor: Include the fixes targetted for WordPress 5.8 RC3. 2021-07-13 16:41:28 +00:00
site-tagline Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
site-title Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
social-link
social-links Block Editor: Update the WordPress packages with the fixes for 5.8 beta 2. 2021-06-15 08:52:30 +00:00
spacer
table
tag-cloud
text-columns
verse Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
video
archives.php
block.php Block Editor: Update packages with latest fixes for 5.8 RC2 2021-07-06 14:38:40 +00:00
calendar.php
categories.php Block Editor: Include the latest fixes targetted for 5.8 RC1. 2021-06-29 15:53:43 +00:00
file.php Block Editor: Update the packages with a number of fixes targeted for Beta 4. 2021-06-25 15:52:22 +00:00
index.php Editor: Include Cover block in the list of block types registered using metadata files. 2021-06-17 11:57:56 +00:00
latest-comments.php
latest-posts.php
legacy-widget.php Coding Standards: Use the correct formatting for multi-line comments. 2021-07-13 18:02:57 +00:00
loginout.php
page-list.php Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
post-content.php Block Editor: Update packages with latest fixes for 5.8 RC2 2021-07-06 14:38:40 +00:00
post-date.php
post-excerpt.php Block Editor: Backport fixes targetted for WordPress 5.8 RC4. 2021-07-15 18:55:29 +00:00
post-featured-image.php
post-template.php Block Editor: Include the fixes targetted for WordPress 5.8 RC3. 2021-07-13 16:41:28 +00:00
post-terms.php Block Editor: Update packages with latest fixes for 5.8 RC2 2021-07-06 23:57:21 +00:00
post-title.php
query-pagination-next.php Block Editor: Update packages and backport the latest Gutenberg fixes. 2021-06-01 08:10:04 +00:00
query-pagination-numbers.php Block Editor: Update packages and backport the latest Gutenberg fixes. 2021-06-01 08:10:04 +00:00
query-pagination-previous.php Block Editor: Update packages and backport the latest Gutenberg fixes. 2021-06-01 08:10:04 +00:00
query-pagination.php
query-title.php
query.php
rss.php
search.php
shortcode.php
site-logo.php Block Editor: Include the fixes targetted for WordPress 5.8 RC3. 2021-07-13 16:41:28 +00:00
site-tagline.php Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
site-title.php Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
social-link.php Block Editor: Update packages and backport the latest Gutenberg fixes. 2021-06-01 08:10:04 +00:00
tag-cloud.php