mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Track kind list build time
This commit is contained in:
parent
cad326b1b8
commit
3632f8c4d1
1 changed files with 9 additions and 0 deletions
|
|
@ -301,6 +301,12 @@ class BuildLists {
|
|||
saveKind = async function ( list, 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({
|
||||
list,
|
||||
})
|
||||
|
|
@ -315,6 +321,9 @@ class BuildLists {
|
|||
|
||||
await this.saveToJson( kindPage.items, kindPagePath )
|
||||
}
|
||||
|
||||
console.timeEnd(endpointMethodName)
|
||||
console.log( '\n\n' )
|
||||
}
|
||||
|
||||
saveApiEndpoints = async ( listOptions ) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue