Make WordPress Core

Changeset 53314


Ignore:
Timestamp:
04/29/2022 02:44:15 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Adjust comments in Gruntfile.js per the documentation standards.

See #54729.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r53311 r53314  
    517517                                        'wp-includes/css/*.css',
    518518
    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                                         */
    521523                                        '!wp-admin/css/*-rtl.css',
    522524                                        '!wp-includes/css/*-rtl.css',
    … …  
    12191221        grunt.registerTask( 'sync-gutenberg-packages', function() {
    12201222                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                         */
    12341238                        grunt.task.run( 'browserslist:update' );
    12351239                }
    … …  
    12381242                grunt.task.run( 'wp-packages:update' );
    12391243
    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                 */
    12421248                grunt.task.run( 'wp-packages:refresh-deps' );
    12431249
    … …  
    15181524
    15191525                const files = match[1].split( '\n\t' ).filter( function( file ) {
    1520                         // Filter out empty lines
     1526                        // Filter out empty lines.
    15211527                        if ( '' === file ) {
    15221528                                return false;
    15231529                        }
    15241530
    1525                         // Filter out commented out lines
     1531                        // Filter out commented out lines.
    15261532                        if ( 0 === file.indexOf( '/' ) ) {
    15271533                                return false;
    … …  
    15301536                        return true;
    15311537                } ).map( function( file ) {
    1532                         // Strip leading and trailing single quotes and commas
     1538                        // Strip leading and trailing single quotes and commas.
    15331539                        return file.replace( /^\'|\',$/g, '' );
    15341540                } );
Note: See TracChangeset for help on using the changeset viewer.