Make WordPress Core

Changeset 61438 for trunk/.gitignore


Ignore:
Timestamp:
01/05/2026 10:49:26 AM (4 months ago)
Author:
youknowriad
Message:

Build: Update Gutenberg integration to checkout-and-build approach.

This changes WordPress Core's Gutenberg integration from npm packages to checking out and building Gutenberg directly. Instead of syncing individual npm packages, Core now checks out the Gutenberg repository, builds it, and copies the build artifacts.

This enables Core to use Gutenberg's advanced features like route-based navigation, full-page rendering, and the Font Library, while also streamlining future updates.

New commands:

  • npm run gutenberg:checkout - Clones Gutenberg at a specified ref
  • npm run gutenberg:build - Runs Gutenberg's build process
  • npm run gutenberg:copy - Copies and transforms build output to Core
  • npm run gutenberg:integrate - Runs all three steps

Main changes:

  • Removes webpack configs replaced by Gutenberg's build (blocks.js, packages.js, script-modules.js, development.js, vendors.js)
  • Adds Font Library page (/wp-admin/font-library.php)
  • Adds copy scripts to transform Gutenberg plugin paths to Core paths
  • Moves vendor copy step from webpack to Gruntfile

New year, new process. Happy New Year!

Props youknowriad, ellatrix, sirreal, westonruter, desrosj, tellthemachines.
Fixes #64393.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.gitignore

    r61006 r61438  
    2121/npm-debug.log
    2222/build
     23/gutenberg
    2324/tests/phpunit/build
    2425/wp-cli.local.yml
     
    3132/src/wp-admin/js
    3233/src/wp-includes/assets/*
    33 !/src/wp-includes/assets/script-loader-packages.min.php
    34 !/src/wp-includes/assets/script-modules-packages.min.php
    3534/src/wp-includes/js
    3635/src/wp-includes/css/dist
    3736/src/wp-includes/css/*.min.css
    3837/src/wp-includes/css/*-rtl.css
    39 /src/wp-includes/blocks/**/*.css
    40 /src/wp-includes/blocks/**/*.js
    41 /src/wp-includes/blocks/**/*.js.map
     38/src/wp-includes/blocks/*
     39!/src/wp-includes/blocks/index.php
     40/src/wp-includes/build
     41/src/wp-includes/class-wp-block-parser.php
     42/src/wp-includes/class-wp-block-parser-block.php
     43/src/wp-includes/class-wp-block-parser-frame.php
     44/src/wp-includes/theme.json
     45/src/wp-includes/theme-i18n.json
    4246/packagehash.txt
    4347/artifacts
Note: See TracChangeset for help on using the changeset viewer.