Changeset 62062 for trunk/Gruntfile.js
- Timestamp:
- 03/19/2026 12:35:31 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/Gruntfile.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r62055 r62062 1565 1565 ] ); 1566 1566 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 RC11574 * - If Webpack throws a warning about an outdated database1575 *1576 * It should not be updated:1577 * - After the RC11578 * - When backporting fixes to older WordPress releases.1579 *1580 * For more context, see:1581 * https://github.com/WordPress/wordpress-develop/pull/2621#discussion_r8598405151582 * https://core.trac.wordpress.org/ticket/555591583 */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 1597 1567 // Gutenberg integration tasks. 1598 1568 grunt.registerTask( 'gutenberg:verify', 'Verifies the installed Gutenberg version matches the expected SHA.', function() { … … 2228 2198 } ); 2229 2199 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 2245 2200 // Patch task. 2246 2201 grunt.renameTask('patch_wordpress', 'patch');
Note: See TracChangeset
for help on using the changeset viewer.