mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 13:58:08 +00:00
deno
This commit is contained in:
parent
08f797b3f2
commit
65d2e4a71f
2 changed files with 21 additions and 0 deletions
13
deno/deno.json
Normal file
13
deno/deno.json
Normal file
|
@ -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"
|
||||
}
|
||||
}
|
8
deno/main.ts
Normal file
8
deno/main.ts
Normal file
|
@ -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!
|
Loading…
Add table
Reference in a new issue