Skip to content

Commit c18fc71

Browse files
committed
feat: add new entries for bundler, test framework, analytics
1 parent 03d0392 commit c18fc71

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

src/components/header/repo-form.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,16 @@ const props = defineProps<Props>();
5656
defineEmits<{ submit: [repo: Pick<Repository, "full_name" | "integrations">] }>();
5757
// Form
5858
const analyticsOptions = [
59+
{ name: "Ackee", value: "ackee" },
60+
{ name: "GoatCounter", value: "goat_counter" },
61+
{ name: "Matomo", value: "matomo" },
62+
{ name: "Plausible", value: "plausible" },
63+
{ name: "PostHog", value: "posthog" },
5964
{ name: "counter.dev", value: "counter.dev" },
6065
{ name: "Google Analytics", value: "google_analytics" },
61-
{ name: "Yandex.Metrika", value: "yandex_metrika" },
6266
{ name: "Hotjar", value: "hotjar" },
63-
{ name: "Umami", value: "umami" }
67+
{ name: "Umami", value: "umami" },
68+
{ name: "Yandex.Metrika", value: "yandex_metrika" }
6469
] as const;
6570
6671
const form = ref(deepCopy(props.repo));

src/composable/useRepo.ts

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,34 @@ export function useRepository(data: Ref<Repository>) {
5252

5353
const bundler = computed<string | null>(() => {
5454
if (!data.value.dependencies) { return null; }
55-
return Object.keys(data.value.dependencies).find((dep) => ["vite", "rollup", "webpack"].includes(dep)) ?? null;
55+
return Object.keys(data.value.dependencies).find((dep) => [
56+
"bun",
57+
"esbuild",
58+
"parcel",
59+
"rolldown",
60+
"rollup",
61+
"rspack",
62+
"tsup",
63+
"unbuild",
64+
"vite",
65+
"webpack"
66+
].includes(dep)) ?? null;
5667
});
5768
const testFramework = computed<string | null>(() => {
5869
if (!data.value.dependencies) { return null; }
59-
return Object.keys(data.value.dependencies).find((dep) => ["jest", "mocha", "vitest"].includes(dep)) ?? null;
70+
return Object.keys(data.value.dependencies).find((dep) => [
71+
"ava",
72+
"bench",
73+
"cypress",
74+
"jest",
75+
"mocha",
76+
"mocha",
77+
"playwright",
78+
"tap",
79+
"uvu",
80+
"vitest",
81+
"zora"
82+
].includes(dep)) ?? null;
6083
});
6184

6285
return {

0 commit comments

Comments
 (0)