Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
2cc4934
Remove the Gutenberg build script.
desrosj Feb 23, 2026
956f1e2
Remove Sync Gutenberg script
desrosj Feb 23, 2026
26f36c6
Remove the need to clone the Gutenberg repository.
desrosj Feb 23, 2026
a696ca7
Rename `checkout` related scripts to `download`.
desrosj Feb 23, 2026
b66772e
Rename `ref` to `sha`.
desrosj Feb 23, 2026
1b63326
Move the container registry reference out of code.
desrosj Feb 23, 2026
aed9824
Don't redownload without `--force`
desrosj Feb 23, 2026
f120d19
Add verification of the SHA value in hash file.
desrosj Feb 23, 2026
2e3f506
Use the most recent hash from test packages.
desrosj Feb 23, 2026
6dba1aa
Switch to using the GHCR package from `gutenberg`.
desrosj Feb 24, 2026
afdc71b
Merge branch 'trunk' into try/remove-gutenberg-git-checkout-and-build
desrosj Feb 24, 2026
de7eb2d
Update hash value.
desrosj Feb 24, 2026
6ed7de6
Merge branch 'try/remove-gutenberg-git-checkout-and-build' of https:/…
desrosj Feb 24, 2026
d21381f
Apply suggestions from code review.
desrosj Feb 24, 2026
6b06b35
Replace remaining instances of `exec( 'curl' )`.
desrosj Feb 24, 2026
af95bac
Merge branch 'trunk' into try/remove-gutenberg-git-checkout-and-build
desrosj Feb 25, 2026
a8b88fc
Merge remote-tracking branch 'upstream/trunk' into try/remove-gutenbe…
desrosj Feb 25, 2026
9f7604a
Merge remote-tracking branch 'upstream/trunk' into try/remove-gutenbe…
desrosj Feb 25, 2026
1589ee0
Correctly include block PHP files.
desrosj Feb 25, 2026
63f97bd
Merge remote-tracking branch 'upstream/trunk' into try/remove-gutenbe…
desrosj Feb 25, 2026
8ffc312
Update upstream package details.
desrosj Feb 26, 2026
1df2afb
Change package name.
desrosj Feb 26, 2026
cf25013
Update pinned hash.
desrosj Feb 27, 2026
bc11a38
Merge branch 'trunk' into try/remove-gutenberg-git-checkout-and-build
desrosj Feb 27, 2026
adad173
Update commit hash.
desrosj Feb 27, 2026
9849e91
Revert changes no longer necessary.
desrosj Feb 27, 2026
13946e5
A few more reverts.
desrosj Feb 27, 2026
59e3cb2
Built block files are different.
desrosj Feb 27, 2026
218d38d
Correctly point to the nested block directories.
desrosj Feb 27, 2026
2741dbd
Merge remote-tracking branch 'upstream/trunk' into try/remove-gutenbe…
desrosj Feb 27, 2026
15cc9bc
Correct the destination path for blocks.
desrosj Feb 27, 2026
0702c40
Bug fixes.
desrosj Feb 28, 2026
ab96de1
Merge remote-tracking branch 'upstream/trunk' into try/remove-gutenbe…
desrosj Feb 28, 2026
346e4df
Update Gutenberg hash.
desrosj Feb 28, 2026
fdd1bc3
Address some review feedback.
desrosj Feb 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 8 additions & 27 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ module.exports = function(grunt) {
webpackFiles = [
'wp-includes/assets/*',
'wp-includes/css/dist',
'wp-includes/blocks/**/*.css',
'!wp-includes/assets/script-loader-packages.min.php',
'!wp-includes/assets/script-modules-packages.min.php',
],
Expand Down Expand Up @@ -1468,22 +1467,15 @@ module.exports = function(grunt) {
} );

// Gutenberg integration tasks.
grunt.registerTask( 'gutenberg-checkout', 'Checks out the Gutenberg repository.', function() {
const done = this.async();
grunt.util.spawn( {
cmd: 'node',
args: [ 'tools/gutenberg/checkout-gutenberg.js' ],
opts: { stdio: 'inherit' }
}, function( error ) {
done( ! error );
} );
} );

grunt.registerTask( 'gutenberg-build', 'Builds the Gutenberg repository.', function() {
grunt.registerTask( 'gutenberg-download', 'Downloads the built Gutenberg artifact.', function() {
const done = this.async();
const args = [ 'tools/gutenberg/download-gutenberg.js' ];
if ( grunt.option( 'force' ) ) {
args.push( '--force' );
}
grunt.util.spawn( {
cmd: 'node',
args: [ 'tools/gutenberg/build-gutenberg.js' ],
args,
opts: { stdio: 'inherit' }
}, function( error ) {
done( ! error );
Expand All @@ -1502,17 +1494,6 @@ module.exports = function(grunt) {
} );
} );

grunt.registerTask( 'gutenberg-sync', 'Syncs Gutenberg checkout and build if ref has changed.', function() {
const done = this.async();
grunt.util.spawn( {
cmd: 'node',
args: [ 'tools/gutenberg/sync-gutenberg.js' ],
opts: { stdio: 'inherit' }
}, function( error ) {
done( ! error );
} );
} );

grunt.registerTask( 'copy-vendor-scripts', 'Copies vendor scripts from node_modules to wp-includes/js/dist/vendor/.', function() {
const done = this.async();
const buildDir = grunt.option( 'dev' ) ? 'src' : 'build';
Expand Down Expand Up @@ -1954,7 +1935,7 @@ module.exports = function(grunt) {
'build:js',
'build:css',
'build:codemirror',
'gutenberg-sync',
'gutenberg-download',
'gutenberg-copy',
'copy-vendor-scripts',
'build:certificates'
Expand All @@ -1966,7 +1947,7 @@ module.exports = function(grunt) {
'build:js',
'build:css',
'build:codemirror',
'gutenberg-sync',
'gutenberg-download',
'gutenberg-copy',
'copy-vendor-scripts',
'replace:source-maps',
Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"url": "https://develop.svn.wordpress.org/trunk"
},
"gutenberg": {
"ref": "022d8dd3d461f91b15c1f0410649d3ebb027207f"
"sha": "cd4cf58db37e9f774f321df14138dfef5d7e475a",
"ghcrRepo": "WordPress/gutenberg/gutenberg-wp-develop-build"
},
"engines": {
"node": ">=20.10.0",
Expand Down Expand Up @@ -106,7 +107,7 @@
"wicg-inert": "3.1.3"
},
"scripts": {
"postinstall": "npm run gutenberg:sync && npm run gutenberg:copy -- --dev",
"postinstall": "npm run gutenberg:download && npm run gutenberg:copy -- --dev",
"build": "grunt build",
"build:dev": "grunt build --dev",
"dev": "grunt watch --dev",
Expand All @@ -131,12 +132,10 @@
"test:e2e": "wp-scripts test-playwright --config tests/e2e/playwright.config.js",
"test:visual": "wp-scripts test-playwright --config tests/visual-regression/playwright.config.js",
"typecheck:php": "node ./tools/local-env/scripts/docker.js run --rm php composer phpstan",
"gutenberg:checkout": "node tools/gutenberg/checkout-gutenberg.js",
"gutenberg:build": "node tools/gutenberg/build-gutenberg.js",
"gutenberg:download": "node tools/gutenberg/download-gutenberg.js",
"gutenberg:copy": "node tools/gutenberg/copy-gutenberg-build.js",
"gutenberg:sync": "node tools/gutenberg/sync-gutenberg.js",
"vendor:copy": "node tools/vendors/copy-vendors.js",
"sync-gutenberg-packages": "grunt sync-gutenberg-packages",
"postsync-gutenberg-packages": "grunt wp-packages:sync-stable-blocks && grunt build --dev && grunt build"
}
}
}
192 changes: 0 additions & 192 deletions tools/gutenberg/build-gutenberg.js

This file was deleted.

Loading
Loading