chore: update dependencies (#112)
This commit is contained in:
+4
-4
@@ -3,12 +3,12 @@ export {
|
|||||||
join,
|
join,
|
||||||
resolve,
|
resolve,
|
||||||
toFileUrl,
|
toFileUrl,
|
||||||
} from "https://deno.land/std@0.102.0/path/mod.ts";
|
} from "https://deno.land/std@0.128.0/path/mod.ts";
|
||||||
export { walk } from "https://deno.land/std@0.102.0/fs/walk.ts";
|
export { walk } from "https://deno.land/std@0.128.0/fs/walk.ts";
|
||||||
export { parse as parseArgs } from "https://deno.land/std@0.102.0/flags/mod.ts";
|
export { parse as parseArgs } from "https://deno.land/std@0.128.0/flags/mod.ts";
|
||||||
export {
|
export {
|
||||||
bold,
|
bold,
|
||||||
green,
|
green,
|
||||||
red,
|
red,
|
||||||
yellow,
|
yellow,
|
||||||
} from "https://deno.land/std@0.102.0/fmt/colors.ts";
|
} from "https://deno.land/std@0.128.0/fmt/colors.ts";
|
||||||
|
|||||||
+3
-3
@@ -6,9 +6,9 @@ export {
|
|||||||
extname,
|
extname,
|
||||||
fromFileUrl,
|
fromFileUrl,
|
||||||
toFileUrl,
|
toFileUrl,
|
||||||
} from "https://deno.land/std@0.108.0/path/mod.ts";
|
} from "https://deno.land/std@0.128.0/path/mod.ts";
|
||||||
export { walk } from "https://deno.land/std@0.108.0/fs/walk.ts";
|
export { walk } from "https://deno.land/std@0.128.0/fs/walk.ts";
|
||||||
export { listenAndServe } from "https://deno.land/std@0.108.0/http/server.ts";
|
export { serve } from "https://deno.land/std@0.128.0/http/server.ts";
|
||||||
|
|
||||||
// -- router --
|
// -- router --
|
||||||
export * as router from "https://crux.land/router@0.0.5";
|
export * as router from "https://crux.land/router@0.0.5";
|
||||||
|
|||||||
+4
-2
@@ -1,5 +1,5 @@
|
|||||||
import { ServerContext } from "./context.ts";
|
import { ServerContext } from "./context.ts";
|
||||||
import { listenAndServe } from "./deps.ts";
|
import { serve } from "./deps.ts";
|
||||||
import {
|
import {
|
||||||
AppModule,
|
AppModule,
|
||||||
ErrorPageModule,
|
ErrorPageModule,
|
||||||
@@ -32,5 +32,7 @@ export { ServerContext };
|
|||||||
export async function start(routes: Manifest) {
|
export async function start(routes: Manifest) {
|
||||||
const ctx = await ServerContext.fromManifest(routes);
|
const ctx = await ServerContext.fromManifest(routes);
|
||||||
console.log("Server listening on http://localhost:8000");
|
console.log("Server listening on http://localhost:8000");
|
||||||
await listenAndServe(":8000", ctx.handler());
|
await serve(ctx.handler(), {
|
||||||
|
port: 8000,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user