chore: init monorepo

This commit is contained in:
2025-11-16 23:15:20 +08:00
commit 50de4383eb
10 changed files with 165 additions and 0 deletions

29
apps/csms/.gitignore vendored Normal file
View File

@@ -0,0 +1,29 @@
# Build outputs
dist/
build/
.tsbuildinfo
# Runtime
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
# IDE
.vscode/*
!.vscode/launch.json
!.vscode/*.code-snippets
.idea/workspace.xml
.idea/usage.statistics.xml
.idea/shelf
# Package managers
.yarn/
!.yarn/releases
# OS
.DS_Store
Thumbs.db

8
apps/csms/README.md Normal file
View File

@@ -0,0 +1,8 @@
```
npm install
npm run dev
```
```
open http://localhost:3000
```

18
apps/csms/package.json Normal file
View File

@@ -0,0 +1,18 @@
{
"name": "csms",
"type": "module",
"scripts": {
"dev": "tsx watch src/index.ts",
"build": "tsc",
"start": "node dist/index.js"
},
"dependencies": {
"@hono/node-server": "^1.19.6",
"hono": "^4.10.6"
},
"devDependencies": {
"@types/node": "^20.11.17",
"tsx": "^4.7.1",
"typescript": "^5.8.3"
}
}

15
apps/csms/src/index.ts Normal file
View File

@@ -0,0 +1,15 @@
import { serve } from '@hono/node-server'
import { Hono } from 'hono'
const app = new Hono()
app.get('/', (c) => {
return c.text('Hello Hono!')
})
serve({
fetch: app.fetch,
port: 20128
}, (info) => {
console.log(`Server is running on http://localhost:${info.port}`)
})

16
apps/csms/tsconfig.json Normal file
View File

@@ -0,0 +1,16 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "NodeNext",
"strict": true,
"verbatimModuleSyntax": true,
"skipLibCheck": true,
"types": [
"node"
],
"jsx": "react-jsx",
"jsxImportSource": "hono/jsx",
"outDir": "./dist"
},
"exclude": ["node_modules"]
}