Changeset 53314
- Timestamp:
- 04/29/2022 02:44:15 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/Gruntfile.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r53311 r53314 517 517 'wp-includes/css/*.css', 518 518 519 // Exclude minified and already processed files, and files from external packages. 520 // These are present when running `grunt build` after `grunt --dev`. 519 /* 520 * Exclude minified and already processed files, and files from external packages. 521 * These are present when running `grunt build` after `grunt --dev`. 522 */ 521 523 '!wp-admin/css/*-rtl.css', 522 524 '!wp-includes/css/*-rtl.css', … … 1219 1221 grunt.registerTask( 'sync-gutenberg-packages', function() { 1220 1222 if ( grunt.option( 'update-browserlist' ) ) { 1221 // Updating the browserlist database is opt-in and up to the release lead. 1222 // 1223 // Browserlist database should be updated: 1224 // * In each release cycle up until RC1 1225 // * If Webpack throws a warning about an outdated database 1226 // 1227 // It should not be updated: 1228 // * After the RC1 1229 // * When backporting fixes to older WordPress releases. 1230 // 1231 // For more context, see: 1232 // https://github.com/WordPress/wordpress-develop/pull/2621#discussion_r859840515 1233 // https://core.trac.wordpress.org/ticket/55559 1223 /* 1224 * Updating the browserlist database is opt-in and up to the release lead. 1225 * 1226 * Browserlist database should be updated: 1227 * - In each release cycle up until RC1 1228 * - If Webpack throws a warning about an outdated database 1229 * 1230 * It should not be updated: 1231 * - After the RC1 1232 * - When backporting fixes to older WordPress releases. 1233 * 1234 * For more context, see: 1235 * https://github.com/WordPress/wordpress-develop/pull/2621#discussion_r859840515 1236 * https://core.trac.wordpress.org/ticket/55559 1237 */ 1234 1238 grunt.task.run( 'browserslist:update' ); 1235 1239 } … … 1238 1242 grunt.task.run( 'wp-packages:update' ); 1239 1243 1240 // Install any new @wordpress packages that are now required. 1241 // Update any non-@wordpress deps to the same version as required in the @wordpress packages (e.g. react 16 -> 17). 1244 /* 1245 * Install any new @wordpress packages that are now required. 1246 * Update any non-@wordpress deps to the same version as required in the @wordpress packages (e.g. react 16 -> 17). 1247 */ 1242 1248 grunt.task.run( 'wp-packages:refresh-deps' ); 1243 1249 … … 1518 1524 1519 1525 const files = match[1].split( '\n\t' ).filter( function( file ) { 1520 // Filter out empty lines 1526 // Filter out empty lines. 1521 1527 if ( '' === file ) { 1522 1528 return false; 1523 1529 } 1524 1530 1525 // Filter out commented out lines 1531 // Filter out commented out lines. 1526 1532 if ( 0 === file.indexOf( '/' ) ) { 1527 1533 return false; … … 1530 1536 return true; 1531 1537 } ).map( function( file ) { 1532 // Strip leading and trailing single quotes and commas 1538 // Strip leading and trailing single quotes and commas. 1533 1539 return file.replace( /^\'|\',$/g, '' ); 1534 1540 } );
Note: See TracChangeset
for help on using the changeset viewer.