From c689adca8e48dfccd9b7e9c59dcff34feebab269 Mon Sep 17 00:00:00 2001 From: youknowriad Date: Fri, 9 Jan 2026 09:23:47 +0000 Subject: [PATCH] Build: Move Gutenberg checkout to a postinstall script. This separates dependency setup from the build process by running the Gutenberg checkout during npm install rather than before each build. Build times decrease by approximately 30 seconds since the checkout now occurs once during installation. Props youknowriad, dmsnell. See #64393. Built from https://develop.svn.wordpress.org/trunk@61458 git-svn-id: http://core.svn.wordpress.org/trunk@60770 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/css/dist/index.php | 56 ++++++++++---------- wp-includes/js/dist/script-modules/index.php | 20 +++---- wp-includes/version.php | 2 +- 3 files changed, 39 insertions(+), 39 deletions(-) diff --git a/wp-includes/css/dist/index.php b/wp-includes/css/dist/index.php index 6b3526d4d0..abb9de2cf2 100644 --- a/wp-includes/css/dist/index.php +++ b/wp-includes/css/dist/index.php @@ -7,6 +7,11 @@ */ return array( + array( + 'handle' => 'wp-preferences', + 'path' => 'preferences/style', + 'dependencies' => array('wp-components'), + ), array( 'handle' => 'wp-list-reusable-blocks', 'path' => 'list-reusable-blocks/style', @@ -18,30 +23,25 @@ return array( 'dependencies' => array('wp-components'), ), array( - 'handle' => 'wp-preferences', - 'path' => 'preferences/style', - 'dependencies' => array('wp-components'), + 'handle' => 'wp-patterns', + 'path' => 'patterns/style', + 'dependencies' => array('wp-block-editor', 'wp-components'), ), array( 'handle' => 'wp-reusable-blocks', 'path' => 'reusable-blocks/style', 'dependencies' => array('wp-block-editor', 'wp-components'), ), - array( - 'handle' => 'wp-commands', - 'path' => 'commands/style', - 'dependencies' => array('wp-components'), - ), - array( - 'handle' => 'wp-patterns', - 'path' => 'patterns/style', - 'dependencies' => array('wp-block-editor', 'wp-components'), - ), array( 'handle' => 'wp-widgets', 'path' => 'widgets/style', 'dependencies' => array('wp-block-editor', 'wp-components'), ), + array( + 'handle' => 'wp-commands', + 'path' => 'commands/style', + 'dependencies' => array('wp-components'), + ), array( 'handle' => 'wp-components', 'path' => 'components/style', @@ -52,11 +52,6 @@ return array( 'path' => 'format-library/style', 'dependencies' => array('wp-block-editor', 'wp-components'), ), - array( - 'handle' => 'wp-media-utils', - 'path' => 'media-utils/style', - 'dependencies' => array('wp-components'), - ), array( 'handle' => 'wp-block-directory', 'path' => 'block-directory/style', @@ -67,6 +62,16 @@ return array( 'path' => 'customize-widgets/style', 'dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-components', 'wp-media-utils', 'wp-preferences', 'wp-widgets'), ), + array( + 'handle' => 'wp-edit-post', + 'path' => 'edit-post/style', + 'dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-commands', 'wp-components', 'wp-editor', 'wp-preferences', 'wp-widgets'), + ), + array( + 'handle' => 'wp-media-utils', + 'path' => 'media-utils/style', + 'dependencies' => array('wp-components'), + ), array( 'handle' => 'wp-block-library', 'path' => 'block-library/style', @@ -77,24 +82,19 @@ return array( 'path' => 'edit-widgets/style', 'dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-components', 'wp-media-utils', 'wp-patterns', 'wp-preferences', 'wp-widgets'), ), - array( - 'handle' => 'wp-edit-post', - 'path' => 'edit-post/style', - 'dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-commands', 'wp-components', 'wp-editor', 'wp-preferences', 'wp-widgets'), - ), array( 'handle' => 'wp-editor', 'path' => 'editor/style', 'dependencies' => array('wp-block-editor', 'wp-commands', 'wp-components', 'wp-media-utils', 'wp-patterns', 'wp-preferences'), ), - array( - 'handle' => 'wp-block-editor', - 'path' => 'block-editor/style', - 'dependencies' => array('wp-commands', 'wp-components', 'wp-preferences'), - ), array( 'handle' => 'wp-edit-site', 'path' => 'edit-site/style', 'dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-commands', 'wp-components', 'wp-editor', 'wp-patterns', 'wp-preferences', 'wp-widgets'), ), + array( + 'handle' => 'wp-block-editor', + 'path' => 'block-editor/style', + 'dependencies' => array('wp-commands', 'wp-components', 'wp-preferences'), + ), ); diff --git a/wp-includes/js/dist/script-modules/index.php b/wp-includes/js/dist/script-modules/index.php index d260d3a254..e7e9ca3b69 100644 --- a/wp-includes/js/dist/script-modules/index.php +++ b/wp-includes/js/dist/script-modules/index.php @@ -12,6 +12,11 @@ return array( 'path' => 'core-abilities/index', 'asset' => 'core-abilities/index.min.asset.php', ), + array( + 'id' => '@wordpress/a11y', + 'path' => 'a11y/index', + 'asset' => 'a11y/index.min.asset.php', + ), array( 'id' => '@wordpress/interactivity', 'path' => 'interactivity/index', @@ -27,11 +32,6 @@ return array( 'path' => 'interactivity-router/full-page', 'asset' => 'interactivity-router/full-page.min.asset.php', ), - array( - 'id' => '@wordpress/a11y', - 'path' => 'a11y/index', - 'asset' => 'a11y/index.min.asset.php', - ), array( 'id' => '@wordpress/latex-to-mathml', 'path' => 'latex-to-mathml/index', @@ -47,16 +47,16 @@ return array( 'path' => 'abilities/index', 'asset' => 'abilities/index.min.asset.php', ), - array( - 'id' => '@wordpress/edit-site-init', - 'path' => 'edit-site-init/index', - 'asset' => 'edit-site-init/index.min.asset.php', - ), array( 'id' => '@wordpress/route', 'path' => 'route/index', 'asset' => 'route/index.min.asset.php', ), + array( + 'id' => '@wordpress/edit-site-init', + 'path' => 'edit-site-init/index', + 'asset' => 'edit-site-init/index.min.asset.php', + ), array( 'id' => '@wordpress/lazy-editor', 'path' => 'lazy-editor/index', diff --git a/wp-includes/version.php b/wp-includes/version.php index 2423f148b5..a08ed2659c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-alpha-61457'; +$wp_version = '7.0-alpha-61458'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.