diff --git a/build-lists.js b/build-lists.js index 38159cf..5e4341a 100644 --- a/build-lists.js +++ b/build-lists.js @@ -289,6 +289,11 @@ class BuildLists { ] } ) ) + // Add getters for categories + for ( const categorySlug in categories ) { + getters[categorySlug] = () => Array.from( this.lists.app ).filter( app => app.category.slug === categorySlug ) + } + const kindLists = {} for ( const kindSlug in getters ) {