mirror of
https://github.com/Dokploy/examples
synced 2025-06-26 18:15:52 +00:00
feat: Add Deno build task and simple HTTP server
This commit is contained in:
parent
b51803b1d8
commit
76005a3603
@ -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"
|
||||||
|
@ -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!"));
|
||||||
|
Loading…
Reference in New Issue
Block a user