feat: Add Deno build task and simple HTTP server

This commit is contained in:
Mauricio Siu 2025-02-23 19:50:03 -06:00
parent b51803b1d8
commit 76005a3603
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,7 @@
{ {
"tasks": { "tasks": {
"dev": "deno run --watch main.ts" "dev": "deno run --watch main.ts",
"build": "deno run build.ts"
}, },
"imports": { "imports": {
"@std/assert": "jsr:@std/assert@1" "@std/assert": "jsr:@std/assert@1"

View File

@ -6,3 +6,5 @@ export function add(a: number, b: number): number {
if (import.meta.main) { if (import.meta.main) {
console.log("Add 2 + 3 =", add(2, 3)); console.log("Add 2 + 3 =", add(2, 3));
} }
Deno.serve(() => new Response("Hello, world!"));