From 65d2e4a71f218a1bf4026a62f9c65042cde2566d Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Mon, 22 Apr 2024 12:15:30 +0900 Subject: [PATCH] deno --- deno/deno.json | 13 +++++++++++++ deno/main.ts | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 deno/deno.json create mode 100644 deno/main.ts diff --git a/deno/deno.json b/deno/deno.json new file mode 100644 index 0000000..ee1dab0 --- /dev/null +++ b/deno/deno.json @@ -0,0 +1,13 @@ +{ + "tasks": { + "dev": "deno run --watch main.ts" + }, + "deploy": { + "project": "d7ff4021-31bb-4663-b015-12a9e7b9bb64", + "exclude": [ + "**/node_modules" + ], + "include": [], + "entrypoint": "main.ts" + } +} \ No newline at end of file diff --git a/deno/main.ts b/deno/main.ts new file mode 100644 index 0000000..ed11cba --- /dev/null +++ b/deno/main.ts @@ -0,0 +1,8 @@ +const now = new Date(); + +if (import.meta.main) { + Deno.serve(() => new Response(`${now}: Hello World!`)); +} + +// $ curl https://great-crow-36.deno.dev/ +// Mon Apr 22 2024 03:13:21 GMT+0000 (Coordinated Universal Time): Hello World!