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

Class Hono

packages/cli/src/frameworks/hono/index.ts:9–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7import boxen from "boxen";
8
9export class Hono implements Framework {
10 id = "hono";
11 name = "Hono.dev";
12
13 async isMatch(path: string, packageManager: PackageManager): Promise<boolean> {
14 //check for the express package
15 const packageJsonContent = await readPackageJson(path);
16 if (packageJsonContent?.dependencies?.hono) {
17 return true;
18 }
19
20 return false;
21 }
22
23 async dependencies(): Promise<InstallPackage[]> {
24 return [
25 { name: "@trigger.dev/sdk", tag: "latest" },
26 { name: "@trigger.dev/hono", tag: "latest" },
27 ];
28 }
29
30 possibleEnvFilenames(): string[] {
31 return [".dev.vars", ".env"];
32 }
33
34 async install(path: string, { typescript, endpointSlug }: ProjectInstallOptions): Promise<void> {}
35
36 async postInstall(path: string, options: ProjectInstallOptions): Promise<void> {}
37
38 async printInstallationComplete(projectUrl: string): Promise<void> {
39 logger.info(
40 boxen(
41 "Automatic installation isn't currently supported for Hono.dev. \nFollow the steps in our quickstart installation guide: https://trigger.dev/docs/documentation/quickstarts/hono",
42 { padding: 1, margin: 1, borderStyle: "double", borderColor: "magenta" }
43 )
44 );
45 }
46
47 defaultHostnames = ["127.0.0.1", "localhost", "[::]"];
48 defaultPorts = [3000, 8000, 80, 8080];
49 watchFilePaths = standardWatchFilePaths;
50 watchIgnoreRegex = /(node_modules)/;
51}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…