diff options
author | 2022-10-17 05:52:39 +0200 | |
---|---|---|
committer | 2022-10-16 20:52:39 -0700 | |
commit | 00ae8f79e4c55bf0769a5d0066d2947cf5c52073 (patch) | |
tree | d187172212bf5afcf4589ceb7bb2c8e198e8c84f /examples/hono | |
parent | dc1330aef59827e057ddaaa9db50cd775991ebc7 (diff) | |
download | bun-00ae8f79e4c55bf0769a5d0066d2947cf5c52073.tar.gz bun-00ae8f79e4c55bf0769a5d0066d2947cf5c52073.tar.zst bun-00ae8f79e4c55bf0769a5d0066d2947cf5c52073.zip |
Reflecting new home for bun templates (#1317)
* Reflecting new home for bun templates
https://github.com/bun-community/create-templates/
* templates now in root
Diffstat (limited to 'examples/hono')
-rw-r--r-- | examples/hono/package.json | 14 | ||||
-rw-r--r-- | examples/hono/public/favicon.ico | bin | 15406 -> 0 bytes | |||
-rw-r--r-- | examples/hono/readme.md | 21 | ||||
-rw-r--r-- | examples/hono/src/index.ts | 19 | ||||
-rw-r--r-- | examples/hono/tsconfig.json | 10 |
5 files changed, 0 insertions, 64 deletions
diff --git a/examples/hono/package.json b/examples/hono/package.json deleted file mode 100644 index 475c1ed39..000000000 --- a/examples/hono/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "version": "1.0.4", - "name": "@bun-examples/hono", - "devDependencies": { - "bun-types": "latest" - }, - "dependencies": { - "hono": "^2.0.0" - }, - "scripts": { - "start": "bun run src/index.ts" - }, - "module": "src/index.js" -}
\ No newline at end of file diff --git a/examples/hono/public/favicon.ico b/examples/hono/public/favicon.ico Binary files differdeleted file mode 100644 index 543164354..000000000 --- a/examples/hono/public/favicon.ico +++ /dev/null diff --git a/examples/hono/readme.md b/examples/hono/readme.md deleted file mode 100644 index 20b15e3ea..000000000 --- a/examples/hono/readme.md +++ /dev/null @@ -1,21 +0,0 @@ -# Hono with Bun runtime - -## Getting Started - -### Cloning the repo - -```sh -bun create hono ./NAME_HERE -``` - -### Development - -``` -bun run start -``` - -Open http://localhost:3000 with your browser to see the result. - -### For more information - -See <https://honojs.dev/>
\ No newline at end of file diff --git a/examples/hono/src/index.ts b/examples/hono/src/index.ts deleted file mode 100644 index 801955af3..000000000 --- a/examples/hono/src/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Hono } from "hono"; -import { serveStatic } from 'hono/serve-static.bun'; - -const port = parseInt(process.env.PORT) || 3000; - -const app = new Hono(); - -app.use('/favicon.ico', serveStatic({ path: './public/favicon.ico' })); - -app.get("/", (c) => { - return c.json({ message: "Hello World!" }); -}); - -console.log(`Running at http://localhost:${port}`); - -export default { - port, - fetch: app.fetch -}; diff --git a/examples/hono/tsconfig.json b/examples/hono/tsconfig.json deleted file mode 100644 index a3d4e525d..000000000 --- a/examples/hono/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "compilerOptions": { - "lib": ["ESNext"], - "module": "esnext", - "target": "esnext", - "moduleResolution": "node", - // "bun-types" is the important part - "types": ["bun-types"] - } - }
\ No newline at end of file |