Track kind list build time

This commit is contained in:
Sam Carlton 2022-05-19 10:49:50 -05:00
parent cad326b1b8
commit 3632f8c4d1

View file

@ -301,6 +301,12 @@ class BuildLists {
saveKind = async function ( list, kindSlug ) { saveKind = async function ( list, kindSlug ) {
const apiKindListDirectory = `${ apiDirectory }/kind/${ kindSlug }` const apiKindListDirectory = `${ apiDirectory }/kind/${ kindSlug }`
console.log('\n', `-- Starting kind lists for /${ apiKindListDirectory }`)
const endpointMethodName = `Finished kind lists for /${ listOptions.name } endpoints`
console.time(endpointMethodName)
const paginatedList = new PaginatedList({ const paginatedList = new PaginatedList({
list, list,
}) })
@ -315,6 +321,9 @@ class BuildLists {
await this.saveToJson( kindPage.items, kindPagePath ) await this.saveToJson( kindPage.items, kindPagePath )
} }
console.timeEnd(endpointMethodName)
console.log( '\n\n' )
} }
saveApiEndpoints = async ( listOptions ) => { saveApiEndpoints = async ( listOptions ) => {