From c46f4289a013e2ff557ce5cbe5885786b78a203e Mon Sep 17 00:00:00 2001 From: Ruidy Date: Fri, 19 Feb 2021 17:25:40 +0100 Subject: [PATCH] use deps --- deps.ts | 3 +++ examples/test.ts | 2 +- index.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 deps.ts diff --git a/deps.ts b/deps.ts new file mode 100644 index 0000000..6659455 --- /dev/null +++ b/deps.ts @@ -0,0 +1,3 @@ +export { assert } from "https://deno.land/std@0.87.0/testing/asserts.ts"; +export { readLines } from "https://deno.land/std@0.87.0/io/bufio.ts"; +export { serve } from "https://deno.land/std@0.87.0/http/server.ts"; diff --git a/examples/test.ts b/examples/test.ts index 259cfb3..86bc717 100644 --- a/examples/test.ts +++ b/examples/test.ts @@ -1,6 +1,6 @@ // Run using deno test -import { assert } from "https://deno.land/std@0.87.0/testing/asserts.ts"; +import { assert } from "../deps.ts"; Deno.test("Hello test", () => { assert("Hello"); diff --git a/index.ts b/index.ts index d525446..caf985c 100644 --- a/index.ts +++ b/index.ts @@ -1,4 +1,4 @@ -import { serve } from "https://deno.land/std@0.87.0/http/server.ts"; +import { serve } from "./deps.ts"; const s = serve({ port: 8000 });