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 Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
audio Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
block Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
button Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
buttons Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
calendar Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
categories Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
code Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
column Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
columns Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
cover Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
embed Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
file Build: Split packages and blocks to their webpack configs 2021-07-28 10:06:59 +00:00
freeform Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
gallery Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
group Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
heading Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
html Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
image Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
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 Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
missing Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
more Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
nextpage Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
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 Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
query Block Editor: Package updates for Beta 3. 2021-06-22 10:00:50 +00:00
query-pagination Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
query-pagination-next Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
query-pagination-numbers Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
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 Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
rss Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
search Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
separator Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
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 Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
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 Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
table Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
tag-cloud Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
text-columns Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
verse Block Editor: Package updates for 5.8 beta 1. 2021-06-08 08:09:53 +00:00
video Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
archives.php Block Editor: Update the WordPress packages for 5.6 beta 2 2020-10-27 09:34:46 +00:00
block.php Block Editor: Update packages with latest fixes for 5.8 RC2 2021-07-06 14:38:40 +00:00
calendar.php Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00
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 Editor: Update @wordpress npm packages 2021-01-28 02:04:13 +00:00
latest-posts.php Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
legacy-widget.php Coding Standards: Use the correct formatting for multi-line comments. 2021-07-13 18:02:57 +00:00
loginout.php Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
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 Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
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 Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC. 2021-05-21 10:14:23 +00:00
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 Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
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 Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
query-title.php Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
query.php Editor: Update WordPress packages published for Gutenberg 10.6 2021-05-19 15:09:27 +00:00
rss.php Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00
search.php Editor: Update WordPress packages to use with WordPress 5.8 2021-04-15 15:19:43 +00:00
shortcode.php Editor: update JavaScript packages 2020-06-26 13:33:47 +00:00
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 Block Editor: Update the WordPress Packages to the latest version. 2020-10-20 13:36:16 +00:00