Make WordPress Core

Ticket #49460: 49460.2.diff

File 49460.2.diff, 869 bytes (added by SergeyBiryukov, 5 years ago)
  • Gruntfile.js

     
    2727                        'wp-content/plugins/hello.php',
    2828                        'wp-content/plugins/akismet/**',
    2929                        '!wp-content/themes/twenty*/node_modules/**',
    30                         '!wp-config.php',
    3130                ],
    3231                changedFiles = {
    3332                        php: []
     
    9796                clean: {
    9897                        plugins: [BUILD_DIR + 'wp-content/plugins'],
    9998                        themes: [BUILD_DIR + 'wp-content/themes'],
    100                         files: buildFiles.map( function( file ) {
     99                        files: buildFiles.concat( [
     100                                '!wp-config.php',
     101                        ] ).map( function( file ) {
    101102                                if ( '!' === file.charAt( 0 ) ) {
    102103                                        return '!' + BUILD_DIR + file.substring( 1 );
    103104                                }
    104105                                return BUILD_DIR + file;
    105                         }),
     106                        } ),
    106107                        css: [
    107108                                WORKING_DIR + 'wp-admin/css/*.min.css',
    108109                                WORKING_DIR + 'wp-admin/css/*-rtl*.css',