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

38
.gitignore vendored Normal file
View File

@@ -0,0 +1,38 @@
# Dependencies
node_modules/
pnpm-lock.yaml
# Runtime
dist/
build/
.next/
.output/
.nuxt/
# Environment
.env
.env.local
.env.*.local
# IDE
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store
*.log
# OS
Thumbs.db
.DS_Store
# Build outputs
*.tsbuildinfo
# pnpm
.pnpm-debug.log*
# Testing
coverage/
.nyc_output/

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "apps/web"]
path = apps/web
url = https://github.com/HoshinoSuzumi/helios.git

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"]
}

1
apps/web Submodule

Submodule apps/web added at b331b49e51

30
package.json Normal file
View File

@@ -0,0 +1,30 @@
{
"name": "helios-evcs",
"version": "1.0.0",
"private": true,
"description": "Helios EV Charging Station Management System",
"scripts": {
"dev:csms": "pnpm --filter csms dev",
"build:csms": "pnpm --filter csms build",
"start:csms": "pnpm --filter csms start",
"dev:web": "pnpm --filter helios-web dev",
"build:web": "pnpm --filter helios-web build",
"start:web": "pnpm --filter helios-web start",
"dev": "run-p dev:csms dev:web",
"build": "run-p build:csms build:web"
},
"keywords": [
"ev",
"evcs",
"ocpp"
],
"author": {
"name": "Timothy Yin",
"email": "master@uniiem.com"
},
"license": "ISC",
"packageManager": "pnpm@10.18.2",
"devDependencies": {
"npm-run-all": "^4.1.5"
}
}

7
pnpm-workspace.yaml Normal file
View File

@@ -0,0 +1,7 @@
packages:
- 'apps/*'
- 'packages/*'
onlyBuiltDependencies:
- sharp
- unrs-resolver