MCPcopy
hub / github.com/triggerdotdev/trigger.dev / getFramework

Function getFramework

packages/cli/src/frameworks/index.ts:59–70  ·  view source on GitHub ↗
(
  path: string,
  packageManager: PackageManager
)

Source from the content-addressed store, hash-verified

57const frameworks: Framework[] = [new NextJs(), new Remix(), new Astro(), new Express(), new Hono()];
58
59export const getFramework = async (
60 path: string,
61 packageManager: PackageManager
62): Promise<Framework | undefined> => {
63 for (const framework of frameworks) {
64 if (await framework.isMatch(path, packageManager)) {
65 return framework;
66 }
67 }
68
69 return;
70};
71
72export function frameworkNames() {
73 return frameworks.map((f) => f.name).join(", ");

Callers 6

getFrameworkMethod · 0.90
initCommandFunction · 0.90
remix.test.tsFile · 0.85
astro.test.tsFile · 0.85
nextjs.test.tsFile · 0.85
express.test.tsFile · 0.85

Calls 1

isMatchMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…