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:
@@ -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) => {
|
||||
|
||||
11
src/server/modules/user/user.controller.ts
Normal file
11
src/server/modules/user/user.controller.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Controller, Get } from '@hono-di/core';
|
||||
|
||||
@Controller('user')
|
||||
export class UserController {
|
||||
constructor() {}
|
||||
|
||||
@Get('/')
|
||||
index() {
|
||||
return 'Hello User';
|
||||
}
|
||||
}
|
||||
14
src/server/modules/user/user.module.ts
Normal file
14
src/server/modules/user/user.module.ts
Normal 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 {}
|
||||
6
src/server/modules/user/user.service.ts
Normal file
6
src/server/modules/user/user.service.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { Injectable } from '@hono-di/core';
|
||||
|
||||
@Injectable()
|
||||
export class UserService {
|
||||
constructor() {}
|
||||
}
|
||||
Reference in New Issue
Block a user