chore: init monorepo
This commit is contained in:
38
.gitignore
vendored
Normal file
38
.gitignore
vendored
Normal 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
3
.gitmodules
vendored
Normal 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
29
apps/csms/.gitignore
vendored
Normal 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
8
apps/csms/README.md
Normal file
@@ -0,0 +1,8 @@
|
||||
```
|
||||
npm install
|
||||
npm run dev
|
||||
```
|
||||
|
||||
```
|
||||
open http://localhost:3000
|
||||
```
|
||||
18
apps/csms/package.json
Normal file
18
apps/csms/package.json
Normal 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
15
apps/csms/src/index.ts
Normal 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
16
apps/csms/tsconfig.json
Normal 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
1
apps/web
Submodule
Submodule apps/web added at b331b49e51
30
package.json
Normal file
30
package.json
Normal 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
7
pnpm-workspace.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
packages:
|
||||
- 'apps/*'
|
||||
- 'packages/*'
|
||||
|
||||
onlyBuiltDependencies:
|
||||
- sharp
|
||||
- unrs-resolver
|
||||
Reference in New Issue
Block a user