diff --git a/helpers/get-list.js b/helpers/get-list.js index b241cf4..32a68c3 100644 --- a/helpers/get-list.js +++ b/helpers/get-list.js @@ -4,6 +4,10 @@ import homebrewList from '~/static/homebrew-list.json' import { byTimeThenNull } from '~/helpers/sort-list.js' +export const allVideoList = [ + ...appList.sort(byTimeThenNull), + ...gameList, +] export const allList = [ ...appList.sort(byTimeThenNull), diff --git a/nuxt.config.js b/nuxt.config.js index 29ea5ed..be6a9d1 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -68,7 +68,18 @@ const storeAppLists = async function (builder) { const savedLists = await Promise.all(listsOptions.map(saveList)) // Build and save list of videos based on app lists .then(async lists => { - return saveList(videoListOptions, lists.flat(1)) + const [ + appList, + gameList + ] = lists + + // Build a video app list with apps and games only + const videoAppList = [ + ...appList, + ...gameList + ].flat(1) + + return await saveList(videoListOptions, videoAppList) }) console.log('Build Lists finished')