refactor: use manifest variable name (#1902)

Previously, the `routes` variable name was used. This change makes more
sense as the variable has the `Manifest` type.
This commit is contained in:
Asher Gomez
2023-10-11 10:03:08 +11:00
committed by GitHub
parent ded23e0a94
commit 6ce39b8cee
18 changed files with 37 additions and 37 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
import options from "./options.ts";
await start(routes, options);
await start(manifest, options);
+2 -2
View File
@@ -5,8 +5,8 @@
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
import options from "./options.ts";
// this just exists to function as a type check to assert that we can actually pass a key and cert in
await start(routes, { ...options, key: "test", cert: "test" });
await start(manifest, { ...options, key: "test", cert: "test" });
+2 -2
View File
@@ -8,7 +8,7 @@
import "./polyfill_deno_deploy.ts";
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
import options from "./options.ts";
await start(routes, options);
await start(manifest, options);
+2 -2
View File
@@ -5,6 +5,6 @@
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
await start(routes);
await start(manifest);
+2 -2
View File
@@ -5,6 +5,6 @@
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
await start(routes);
await start(manifest);
+2 -2
View File
@@ -5,6 +5,6 @@
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
await start(routes);
await start(manifest);
+2 -2
View File
@@ -5,6 +5,6 @@
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
await start(routes);
await start(manifest);
+2 -2
View File
@@ -5,6 +5,6 @@
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
await start(routes);
await start(manifest);
+2 -2
View File
@@ -5,6 +5,6 @@
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
await start(routes);
await start(manifest);
+2 -2
View File
@@ -5,7 +5,7 @@
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
const TEST_CONFIG_SERVER = Deno.env.get("TEST_CONFIG_SERVER") === "true";
const onListen = (params: { hostname: string; port: number }) => {
@@ -17,7 +17,7 @@ const onListen2 = (params: { hostname: string; port: number }) => {
console.log(`http://localhost:${params.port}`);
};
await start(routes, {
await start(manifest, {
server: {
onListen: TEST_CONFIG_SERVER ? onListen2 : undefined,
},
+2 -2
View File
@@ -5,6 +5,6 @@
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
await start(routes);
await start(manifest);
+2 -2
View File
@@ -8,6 +8,6 @@
import "./polyfill_deno_deploy.ts";
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
await start(routes);
await start(manifest);
+2 -2
View File
@@ -5,6 +5,6 @@
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
await start(routes);
await start(manifest);
+2 -2
View File
@@ -5,7 +5,7 @@
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
import options from "./options.ts";
await start(routes, options);
await start(manifest, options);
+2 -2
View File
@@ -8,7 +8,7 @@
import "./polyfill_deno_deploy.ts";
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
import options from "./options.ts";
await start(routes, options);
await start(manifest, options);
+2 -2
View File
@@ -5,7 +5,7 @@
/// <reference lib="deno.ns" />
import { start } from "$fresh/server.ts";
import routes from "./fresh.gen.ts";
import manifest from "./fresh.gen.ts";
import options from "./options.ts";
await start(routes, options);
await start(manifest, options);