feat: T1 scaffold — package.json, tsconfig (backend+web), vitest, dirs

- All deps declared once (express5, ws, node-pty, @xterm/xterm6, addon-fit;
  dev: typescript6, tsx, vitest4, @types/node|ws|express)
- postinstall chmod +x node-pty spawn-helper (prebuild ships it non-exec → posix_spawnp fails)
- node-pty verified: require + real PTY spawn (exitCode 0)
- npm test passes with no tests (passWithNoTests)
- tsconfig.web.json type-checks frontend; browser bundling strategy still TBD (see log)

T1 of docs/PLAN.md
This commit is contained in:
Yaojia Wang
2026-06-16 07:21:42 +02:00
parent 91d0a7189f
commit b126cf0e42
13 changed files with 2910 additions and 0 deletions

15
vitest.config.ts Normal file
View File

@@ -0,0 +1,15 @@
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
include: ['test/**/*.test.ts'],
environment: 'node',
// Scaffold has no tests yet; don't fail the script until modules add theirs.
passWithNoTests: true,
// Coverage target is the global 80% rule; enable with `--coverage` once modules exist.
coverage: {
provider: 'v8',
include: ['src/**/*.ts', 'public/**/*.ts'],
},
},
})