Make WordPress Core

Changeset 62062 for trunk/Gruntfile.js


Ignore:
Timestamp:
03/19/2026 12:35:31 PM (3 months ago)
Author:
desrosj
Message:

Build/Test Tools: Remove unused block editor sync scripts.

After [61438] the block editor-related code maintained in the gutenberg repository is no longer managed using npm dependencies. The sync-gutenberg-packages and postsync-gutenberg-packages scripts were specifically meant to manage the update process for those packages, so they’re no longer needed.

Props youknowriad, mamaduka, SirLouen, jtquip88.
Fixes #62839. See #64393.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r62055 r62062  
    15651565    ] );
    15661566
    1567     grunt.registerTask( 'sync-gutenberg-packages', function() {
    1568         if ( grunt.option( 'update-browserlist' ) ) {
    1569             /*
    1570              * Updating the browserlist database is opt-in and up to the release lead.
    1571              *
    1572              * Browserlist database should be updated:
    1573              * - In each release cycle up until RC1
    1574              * - If Webpack throws a warning about an outdated database
    1575              *
    1576              * It should not be updated:
    1577              * - After the RC1
    1578              * - When backporting fixes to older WordPress releases.
    1579              *
    1580              * For more context, see:
    1581              * https://github.com/WordPress/wordpress-develop/pull/2621#discussion_r859840515
    1582              * https://core.trac.wordpress.org/ticket/55559
    1583              */
    1584             grunt.task.run( 'browserslist:update' );
    1585         }
    1586 
    1587         // Install the latest version of the packages already listed in package.json.
    1588         grunt.task.run( 'wp-packages:update' );
    1589 
    1590         /*
    1591          * Install any new @wordpress packages that are now required.
    1592          * Update any non-@wordpress deps to the same version as required in the @wordpress packages (e.g. react 16 -> 17).
    1593          */
    1594         grunt.task.run( 'wp-packages:refresh-deps' );
    1595     } );
    1596 
    15971567    // Gutenberg integration tasks.
    15981568    grunt.registerTask( 'gutenberg:verify', 'Verifies the installed Gutenberg version matches the expected SHA.', function() {
     
    22282198    } );
    22292199
    2230     grunt.registerTask( 'wp-packages:refresh-deps', 'Update version of dependencies in package.json to match the ones listed in the latest WordPress packages', function() {
    2231         const distTag = grunt.option('dist-tag') || 'latest';
    2232         grunt.log.writeln( `Updating versions of dependencies listed in package.json (--dist-tag=${distTag})` );
    2233         spawn( 'node', [ 'tools/release/sync-gutenberg-packages.js', `--dist-tag=${distTag}` ], {
    2234             cwd: __dirname,
    2235             stdio: 'inherit',
    2236         } );
    2237     } );
    2238 
    2239     grunt.registerTask( 'wp-packages:sync-stable-blocks', 'Refresh the PHP files referring to stable @wordpress/block-library blocks.', function() {
    2240         grunt.log.writeln( `Syncing stable blocks from @wordpress/block-library to src/` );
    2241         const { main } = require( './tools/release/sync-stable-blocks' );
    2242         main();
    2243     } );
    2244 
    22452200    // Patch task.
    22462201    grunt.renameTask('patch_wordpress', 'patch');
Note: See TracChangeset for help on using the changeset viewer.