mirror of
https://fastgit.cc/github.com/openclaw/openclaw
synced 2026-04-20 21:02:10 +08:00
build: add targeted tsgo test graphs
This commit is contained in:
@@ -127,7 +127,7 @@
|
||||
- Node remains supported for running built output (`dist/*`) and production installs.
|
||||
- Mac packaging (dev): `scripts/package-mac-app.sh` defaults to current arch.
|
||||
- Type-check/build: `pnpm build`
|
||||
- TypeScript checks: `pnpm tsgo` (prod graph), `pnpm tsgo:test` (test graph), `pnpm tsgo:all` (both; used by `pnpm check`)
|
||||
- TypeScript checks: `pnpm tsgo` (prod graph), `pnpm tsgo:test` (full colocated-test graph), `pnpm tsgo:all` (both; used by `pnpm check`). Targeted test graphs: `pnpm tsgo:test:src`, `pnpm tsgo:test:extensions`, `pnpm tsgo:test:ui`, `pnpm tsgo:test:packages`.
|
||||
- Lint/format: `pnpm check`
|
||||
- Local agent/dev shells default to host-aware `OPENCLAW_LOCAL_CHECK=1` behavior for `pnpm tsgo` and `pnpm lint`; set `OPENCLAW_LOCAL_CHECK_MODE=throttled` to force the lower-memory profile, `OPENCLAW_LOCAL_CHECK_MODE=full` to keep lock-only behavior, or `OPENCLAW_LOCAL_CHECK=0` in CI/shared runs.
|
||||
- Format check: `pnpm format:check` (oxfmt --check)
|
||||
|
||||
@@ -1469,6 +1469,10 @@
|
||||
"tsgo:all": "pnpm tsgo:prod && pnpm tsgo:test",
|
||||
"tsgo:prod": "node scripts/run-tsgo.mjs -p tsconfig.prod.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/prod.tsbuildinfo",
|
||||
"tsgo:test": "node scripts/run-tsgo.mjs -p tsconfig.test.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/test.tsbuildinfo",
|
||||
"tsgo:test:extensions": "node scripts/run-tsgo.mjs -p tsconfig.test.extensions.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/test-extensions.tsbuildinfo",
|
||||
"tsgo:test:packages": "node scripts/run-tsgo.mjs -p tsconfig.test.packages.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/test-packages.tsbuildinfo",
|
||||
"tsgo:test:src": "node scripts/run-tsgo.mjs -p tsconfig.test.src.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/test-src.tsbuildinfo",
|
||||
"tsgo:test:ui": "node scripts/run-tsgo.mjs -p tsconfig.test.ui.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/test-ui.tsbuildinfo",
|
||||
"tui": "node scripts/run-node.mjs tui",
|
||||
"tui:dev": "OPENCLAW_PROFILE=dev node scripts/run-node.mjs --dev tui",
|
||||
"ui:build": "node scripts/ui.js build",
|
||||
|
||||
11
tsconfig.test.extensions.json
Normal file
11
tsconfig.test.extensions.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "./tsconfig.test.json",
|
||||
"include": [
|
||||
"src/**/*.d.ts",
|
||||
"ui/**/*.d.ts",
|
||||
"extensions/**/*.d.ts",
|
||||
"extensions/**/*.test.ts",
|
||||
"extensions/**/*.test.tsx",
|
||||
"packages/**/*.d.ts"
|
||||
]
|
||||
}
|
||||
11
tsconfig.test.packages.json
Normal file
11
tsconfig.test.packages.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "./tsconfig.test.json",
|
||||
"include": [
|
||||
"src/**/*.d.ts",
|
||||
"ui/**/*.d.ts",
|
||||
"extensions/**/*.d.ts",
|
||||
"packages/**/*.d.ts",
|
||||
"packages/**/*.test.ts",
|
||||
"packages/**/*.test.tsx"
|
||||
]
|
||||
}
|
||||
12
tsconfig.test.src.json
Normal file
12
tsconfig.test.src.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"extends": "./tsconfig.test.json",
|
||||
"include": [
|
||||
"src/**/*.d.ts",
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.test.tsx",
|
||||
"ui/**/*.d.ts",
|
||||
"ui/src/ui/app.ts",
|
||||
"extensions/**/*.d.ts",
|
||||
"packages/**/*.d.ts"
|
||||
]
|
||||
}
|
||||
11
tsconfig.test.ui.json
Normal file
11
tsconfig.test.ui.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "./tsconfig.test.json",
|
||||
"include": [
|
||||
"src/**/*.d.ts",
|
||||
"ui/**/*.d.ts",
|
||||
"ui/**/*.test.ts",
|
||||
"ui/**/*.test.tsx",
|
||||
"extensions/**/*.d.ts",
|
||||
"packages/**/*.d.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user