init hono app.

This commit is contained in:
2025-09-05 20:33:17 +08:00
parent a2f8476609
commit e931e5ae58
6 changed files with 65 additions and 2 deletions

5
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"recommendations": [
"denoland.vscode-deno"
]
}

6
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"deno.enablePaths": [
"./"
],
"editor.inlayHints.enabled": "off"
}

View File

@@ -1,2 +1,3 @@
# transcoderr ```
deno task start
```

12
deno.json Normal file
View File

@@ -0,0 +1,12 @@
{
"imports": {
"hono": "jsr:@hono/hono@^4.9.6"
},
"tasks": {
"start": "deno run --allow-net main.ts"
},
"compilerOptions": {
"jsx": "precompile",
"jsxImportSource": "hono/jsx"
}
}

30
deno.lock generated Normal file
View File

@@ -0,0 +1,30 @@
{
"version": "5",
"specifiers": {
"jsr:@hono/hono@^4.9.6": "4.9.6",
"npm:@types/node@*": "24.2.0"
},
"jsr": {
"@hono/hono@4.9.6": {
"integrity": "b85abb0013d167a290b1808d1d4d542dee269df31d4f47122023259fdd7e184b"
}
},
"npm": {
"@types/node@24.2.0": {
"integrity": "sha512-3xyG3pMCq3oYCNg7/ZP+E1ooTaGB4cG8JWRsqqOYQdbWNY4zbaV0Ennrd7stjiJEFZCaybcIgpTjJWHRfBSIDw==",
"dependencies": [
"undici-types"
],
"tarball": "https://registry.npmmirror.com/@types/node/-/node-24.2.0.tgz"
},
"undici-types@7.10.0": {
"integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==",
"tarball": "https://registry.npmmirror.com/undici-types/-/undici-types-7.10.0.tgz"
}
},
"workspace": {
"dependencies": [
"jsr:@hono/hono@^4.9.6"
]
}
}

9
main.ts Normal file
View File

@@ -0,0 +1,9 @@
import { Hono } from 'hono'
const app = new Hono()
app.get('/', (c) => {
return c.text('Hello Hono!')
})
Deno.serve(app.fetch)