chore: update dependencies and add Hono-Di integration

- Bump AWS SDK packages to version 3.965.0
- Add @hono-di/cli and @hono-di/core as dependencies
- Add Hono-Di Vite plugin to vite.config.ts
- Implement a new development tool for Hono-Di with file tree visualization
- Create user module with controller, service, and module files
- Enable experimental decorators and metadata in tsconfig.json
- Update main.ts to remove unnecessary console log
- Add UI for file tree visualizer in testDev plugin
This commit is contained in:
2026-01-08 19:01:45 +07:00
parent 800c8fd033
commit 3dcbbeacef
11 changed files with 1061 additions and 52 deletions

View File

@@ -8,7 +8,7 @@ import { ssrRender } from './worker/ssrRender';
// @ts-ignore
const app = new Hono()
const isDev = import.meta.env.DEV;
console.log("process.versions?.bun:", (process as any).versions?.bun);
// app.use(renderer)
app.use('*', contextStorage());
app.use(cors(), async (c, next) => {

View File

@@ -0,0 +1,11 @@
import { Controller, Get } from '@hono-di/core';
@Controller('user')
export class UserController {
constructor() {}
@Get('/')
index() {
return 'Hello User';
}
}

View File

@@ -0,0 +1,14 @@
import { Module } from '@hono-di/core';
@Module({
imports: [
// hono-di:imports
],
controllers: [
// hono-di:controllers
],
providers: [
// hono-di:providers
],
})
export class UserModule {}

View File

@@ -0,0 +1,6 @@
import { Injectable } from '@hono-di/core';
@Injectable()
export class UserService {
constructor() {}
}