Setup deno properly

This commit is contained in:
Schluffe
2026-09-26 17:23:12 +02:00
parent b8c110b53b
commit 4fdace24b7
6 changed files with 1179 additions and 25 deletions
+5 -5
View File
@@ -6,17 +6,17 @@
"name": "nage",
"devDependencies": {
"@biomejs/biome": "2.5.14",
"@playwright/test": "^1.63.0",
"@playwright/test": "1.63.0",
"@types/bun": "1.4.2",
"@types/node": "^26.6.3",
"jsdom": "^30.1.1",
"@types/node": "26.6.3",
"jsdom": "30.1.1",
"lz-string": "1.5.0",
"playwright": "^1.63.0",
"playwright": "1.63.0",
"solid-js": "1.9.15",
"typescript": "7.0.2",
"vite": "8.3.1",
"vite-plugin-solid": "2.11.14",
"vitest": "^5.0.2",
"vitest": "5.0.2",
},
},
},
+25
View File
@@ -0,0 +1,25 @@
{
"tasks": {
"dev": "deno run -A npm:vite",
"build": "deno run -A npm:vite build",
"preview": "deno run -A npm:vite build && deno run -A npm:vite preview",
"test": "deno run -A npm:vitest",
"test:e2e": "deno run -A npm:playwright test",
"check": "deno run -A npm:@biomejs/biome check --fix",
"serve": {
"command": "tbd",
"description": "tbd",
"dependencies": ["tbd"]
}
},
"imports": {
"#/": "./"
},
"nodeModulesDir": "auto",
"compilerOptions": {
"jsx": "preserve",
"jsxImportSource": "solid-js",
"lib": ["DOM", "DOM.Iterable", "ESNext"]
},
"exclude": ["./"]
}
Generated
+1148 -16
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -25,6 +25,6 @@
"vitest": "5.0.2"
},
"imports": {
"#/": "./*"
"#/": "./"
}
}
-1
View File
@@ -1,4 +1,3 @@
/// <reference lib="deno.ns" />
import { assertEquals } from "jsr:@std/assert";
import handler from "./handler.ts";
import { close, connect, flush, href, setup } from "./testSetup.ts";
-2
View File
@@ -1,5 +1,3 @@
/// <reference lib="deno.ns" />
export function startServer(
handler: Deno.ServeHandler,
hostname: string = "localhost",