forked from imbytecat/fullstack-starter
feat: 补充 root compile/dist 脚本,通过 Turbo filter 委托到对应 app
This commit is contained in:
18
AGENTS.md
18
AGENTS.md
@@ -18,14 +18,20 @@ Guidelines for AI agents working in this Bun monorepo.
|
|||||||
|
|
||||||
### Root Commands (via Turbo)
|
### Root Commands (via Turbo)
|
||||||
```bash
|
```bash
|
||||||
bun dev # Start all apps in dev mode
|
bun dev # Start all apps in dev mode
|
||||||
bun build # Build all apps
|
bun build # Build all apps
|
||||||
bun fix # Lint + format (Biome auto-fix)
|
bun compile # Compile server to standalone binary (current platform)
|
||||||
bun typecheck # TypeScript check across monorepo
|
bun compile:darwin # Compile server for macOS (arm64 + x64)
|
||||||
|
bun compile:linux # Compile server for Linux (x64 + arm64)
|
||||||
|
bun compile:windows # Compile server for Windows x64
|
||||||
|
bun dist # Package desktop distributable (current platform)
|
||||||
|
bun dist:linux # Package desktop for Linux (x64 + arm64)
|
||||||
|
bun dist:mac # Package desktop for macOS (arm64 + x64)
|
||||||
|
bun dist:win # Package desktop for Windows x64
|
||||||
|
bun fix # Lint + format (Biome auto-fix)
|
||||||
|
bun typecheck # TypeScript check across monorepo
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Note:** `compile` and `dist` commands are app-level — run them inside `apps/server/` or `apps/desktop/` directly.
|
|
||||||
|
|
||||||
### Server App (`apps/server`)
|
### Server App (`apps/server`)
|
||||||
```bash
|
```bash
|
||||||
bun dev # Vite dev server (localhost:3000)
|
bun dev # Vite dev server (localhost:3000)
|
||||||
|
|||||||
@@ -9,7 +9,15 @@
|
|||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "turbo run build",
|
"build": "turbo run build",
|
||||||
|
"compile": "turbo run compile --filter=@furtherverse/server",
|
||||||
|
"compile:darwin": "turbo run compile:darwin --filter=@furtherverse/server",
|
||||||
|
"compile:linux": "turbo run compile:linux --filter=@furtherverse/server",
|
||||||
|
"compile:windows": "turbo run compile:windows --filter=@furtherverse/server",
|
||||||
"dev": "turbo run dev",
|
"dev": "turbo run dev",
|
||||||
|
"dist": "turbo run dist --filter=@furtherverse/desktop",
|
||||||
|
"dist:linux": "turbo run dist:linux --filter=@furtherverse/desktop",
|
||||||
|
"dist:mac": "turbo run dist:mac --filter=@furtherverse/desktop",
|
||||||
|
"dist:win": "turbo run dist:win --filter=@furtherverse/desktop",
|
||||||
"fix": "turbo run fix",
|
"fix": "turbo run fix",
|
||||||
"typecheck": "turbo run typecheck"
|
"typecheck": "turbo run typecheck"
|
||||||
},
|
},
|
||||||
|
|||||||
32
turbo.json
32
turbo.json
@@ -6,10 +6,42 @@
|
|||||||
"build": {
|
"build": {
|
||||||
"dependsOn": ["^build"]
|
"dependsOn": ["^build"]
|
||||||
},
|
},
|
||||||
|
"compile": {
|
||||||
|
"dependsOn": ["build"],
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
|
"compile:darwin": {
|
||||||
|
"dependsOn": ["build"],
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
|
"compile:linux": {
|
||||||
|
"dependsOn": ["build"],
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
|
"compile:windows": {
|
||||||
|
"dependsOn": ["build"],
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
"dev": {
|
"dev": {
|
||||||
"cache": false,
|
"cache": false,
|
||||||
"persistent": true
|
"persistent": true
|
||||||
},
|
},
|
||||||
|
"dist": {
|
||||||
|
"dependsOn": ["build"],
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
|
"dist:linux": {
|
||||||
|
"dependsOn": ["build"],
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
|
"dist:mac": {
|
||||||
|
"dependsOn": ["build"],
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
|
"dist:win": {
|
||||||
|
"dependsOn": ["build"],
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
"fix": {
|
"fix": {
|
||||||
"cache": false
|
"cache": false
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user