From 84268bc926d2afd99cee56f9fc9d82042edac57f Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 13 Mar 2021 17:44:28 -0600 Subject: [PATCH] Add code to list all Homebrew formulae --- helpers/build-homebrew-list.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/helpers/build-homebrew-list.js b/helpers/build-homebrew-list.js index 3053c2c..072e9dc 100644 --- a/helpers/build-homebrew-list.js +++ b/helpers/build-homebrew-list.js @@ -216,6 +216,40 @@ class MakeHomebrewList { slug: 'homebrew' } + // for (const formula of Object.values( this.allFormulae )) { + + // const isNative = this.hasArm64Formula( formula ) + // const status = isNative ? 'native' : 'unreported' + // const statusText = isNative ? '✅ Yes, Full Native Apple Silicon Support' : '🔶 Formula has not yet been reported to be native to Apple Silicon' + // const slug = formula.full_name + + // formulaeList.set(formula.full_name, { + // name: formula.full_name, + // status: status, + // // url: `https://formulae.brew.sh/formula/${formulae.name}`, + // text: statusText, + // slug, + // endpoint: getAppEndpoint({ + // slug, + // category + // }),//`/formula/${slug}`, + // category, + // content: null,npm + // relatedLinks: [ + // { + // href: `https://formulae.brew.sh/formula/${formula.name}`, + // label: formula.full_name, + // // a + // }, + // // ...formula.links + // ], + // // reports: [ + // // formulae + // // ] + // }) + + // } + for (const formulae of this.issueTableRowData) {