Skip to content

Commit 58f02a0

Browse files
committed
Build/Test Tools: Output a list of discovered routes.
The list of routes to be copied by the `copy:routes` Grunt task is configured dynamically by the `routes:setup` task, which parses the `gutenberg/build/routes/registry.php` file included in the built asset from the `gutenberg` repository. The task currently produces ouitput only when an error is encountered, such as a missing `registry.php` file or invalide route name. This adjusts the task to produce output so that the list of routes being processed is clear. See #65471. git-svn-id: https://develop.svn.wordpress.org/trunk@62508 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9101865 commit 58f02a0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Gruntfile.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2154,6 +2154,14 @@ module.exports = function(grunt) {
21542154
];
21552155
} )
21562156
) );
2157+
2158+
grunt.log.writeln(
2159+
'Found ' + routeNames.length + ' route' + ( routeNames.length === 1 ? '' : 's' ) +
2160+
' registered in ' + registryPath + ':'
2161+
);
2162+
routeNames.forEach( function( name ) {
2163+
grunt.log.writeln( ' - ' + name );
2164+
} );
21572165
} );
21582166

21592167
grunt.registerTask( 'build:gutenberg', [

0 commit comments

Comments
 (0)