major: import Fresh 2.0 code (#2449)

🎉
This commit is contained in:
Marvin Hagemeister
2024-05-24 09:40:08 +02:00
committed by GitHub
parent 990357629e
commit 287929e4d2
958 changed files with 15794 additions and 28287 deletions
@@ -0,0 +1,21 @@
{
"lock": false,
"compilerOptions": {
"jsx": "precompile",
"jsxImportSource": "preact"
},
"imports": {
"@luca/esbuild-deno-loader": "jsr:@luca/esbuild-deno-loader@^0.10.3",
"@std/crypto": "jsr:@std/crypto@^0.224.0",
"@std/datetime": "jsr:@std/datetime@^0.224.0",
"@std/encoding": "jsr:@std/encoding@^0.224.0",
"@std/fmt": "jsr:@std/fmt@^0.224.0",
"@std/fs": "jsr:@std/fs@^0.224.0",
"@std/html": "jsr:@std/html@^0.224.0",
"@std/jsonc": "jsr:@std/jsonc@^0.224.0",
"@std/path": "jsr:@std/path@^0.224.0",
"@std/semver": "jsr:@std/semver@^0.224.0",
"preact": "npm:preact@^10.20.2",
"preact-render-to-string": "npm:preact-render-to-string@^6.4.2"
}
}
+8
View File
@@ -0,0 +1,8 @@
import { Builder } from "../../../src/dev/mod.ts";
import { app } from "./main.tsx";
const builder = new Builder();
await builder.listen(app, {
port: 4001,
});
@@ -0,0 +1,6 @@
import { App } from "../../../src/app.ts";
export const app = new App().get(
"/",
() => new Response("hello"),
);