MCPcopy
hub / github.com/ThatGuySam/doesitarm / BuildLists

Class BuildLists

build-lists.js:101–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99
100
101class BuildLists {
102
103 constructor () {
104 // Where our lists are stored
105 this.lists = {}
106
107 this.endpointMaps = {
108 // Where Nuxt Routes and Payloads get stored
109 nuxt: new Map(),
110
111 // Where Eleventy Endpoints get stored
112 eleventy: new Map()
113 }
114
115 this.allVideoAppsList = new Set()
116 }
117
118 listsOptions = [
119
120 // Mixed sources will(theoretically) go here
121 // then be read by follow main build methods
122
123
124 // Main build methods
125 {
126 name: 'app',
127 endpointPrefix: 'app',
128 path: '/static/app-list.json',
129 buildMethod: buildAppList,
130 },
131 {
132 name: 'game',
133 endpointPrefix: 'game',
134 path: '/static/game-list.json',
135 buildMethod: buildGamesList,
136 },
137 {
138 name: 'homebrew',
139 endpointPrefix: 'formula',
140 path: '/static/homebrew-list.json',
141 buildMethod: buildHomebrewList,
142 },
143 {
144 name: 'device',
145 endpointPrefix: 'device',
146 path: '/static/device-list.json',
147 buildMethod: buildDeviceList,
148 },
149
150 // Secondary Derivative built lists
151 // Always goes after initial lists
152 // since it depends on them
153 {
154 name: 'video',
155 endpointPrefix: 'tv',
156 path: '/static/video-list.json',
157 buildMethod: async () => {
158

Callers

nothing calls this directly

Calls 12

getSavedAppBundlesMethod · 0.95
getAppBundlesMethod · 0.95
sortBundleVersionsMethod · 0.95
buildVideoPayloadFunction · 0.90
streamToJsonFunction · 0.90
getRelatedVideosFunction · 0.90
deviceSupportsAppFunction · 0.90
logArraysDifferenceFunction · 0.90
makeSearchableListFunction · 0.90
removeMethod · 0.80

Tested by

no test coverage detected