Make WordPress Core

Ticket #44240: 44240.diff

File 44240.diff, 673 bytes (added by jeremyfelt, 7 years ago)
  • Gruntfile.js

     
    10921092                                        '!tests/qunit/editor/**'
    10931093                                ],
    10941094                                tasks: ['qunit']
    1095                         },
    1096                         phpunit: {
    1097                                 files: [ '**/*.php' ],
    1098                                 tasks: [ 'phpunit:default' ]
    10991095                        }
    11001096                }
    11011097        });
     
    11411137                        grunt.task.run( 'build' );
    11421138                }
    11431139
     1140                if ( 'watch:phpunit' === grunt.cli.tasks[ 0 ] || 'undefined' !== typeof grunt.option( 'phpunit' ) ) {
     1141                        grunt.config.data._watch.phpunit = {
     1142                                files: [ '**/*.php' ],
     1143                                tasks: [ 'phpunit:default' ]
     1144                        };
     1145                }
     1146
    11441147                grunt.task.run( '_' + this.nameArgs );
    11451148        } );
    11461149