mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-15 12:50:42 -07:00
e2e/ drives the web build (vite preview) against a per-worker uvicorn: each Playwright worker boots its own backend on its own port with a temp cwd, so SQLite and audio files are fully isolated and parallel- safe. The page fixture seeds the persisted voicebox-server store with the worker's URL before any script runs. VOICEBOX_FAKE_TTS=1 short-circuits get_tts_backend_for_engine to a backend that synthesizes a sine tone sized to the text — the real task queue, SSE progress, history rows, and audio serving all run, only inference is fake. backend/requirements-ci.txt is the slim dependency set validated to boot the app on a CPU-only runner. Specs: startup, settings layout, seeded profile in /voices, and generate-to-completed-audio through the full pipeline.
58 lines
1.8 KiB
JSON
58 lines
1.8 KiB
JSON
{
|
|
"name": "voicebox",
|
|
"version": "0.5.0",
|
|
"private": true,
|
|
"workspaces": [
|
|
"app",
|
|
"tauri",
|
|
"web"
|
|
],
|
|
"scripts": {
|
|
"dev": "bun run setup:dev && cd tauri && bun run tauri dev",
|
|
"dev:web": "cd web && bun run dev",
|
|
"dev:server": "uvicorn backend.main:app --reload --port 17493",
|
|
"setup:dev": "bun run scripts/setup-dev-sidecar.js",
|
|
"build": "./scripts/build-server.sh && cd tauri && bun run tauri build",
|
|
"build:web": "cd web && bun run build",
|
|
"build:release": "./scripts/prepare-release.sh",
|
|
"generate:api": "./scripts/generate-api.sh",
|
|
"generate:keys": "cd tauri && bun tauri signer generate -w ~/.tauri/voicebox.key",
|
|
"build:server": "./scripts/build-server.sh",
|
|
"update:icons": "./scripts/update-icons.sh",
|
|
"convert:assets": "./scripts/convert-assets.sh",
|
|
"lint": "biome lint .",
|
|
"typecheck": "bunx tsc -p app/tsconfig.json --noEmit && cd web && bunx tsc --noEmit",
|
|
"lint:fix": "biome lint --write .",
|
|
"format": "biome format --write .",
|
|
"format:check": "biome format .",
|
|
"check": "biome check .",
|
|
"check:fix": "biome check --write .",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"ci": "bun run typecheck && bun run build:web"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "2.3.12",
|
|
"@playwright/test": "^1.62.1",
|
|
"@types/node": "^20.0.0",
|
|
"@vitejs/plugin-react": "^6.0.5",
|
|
"@vitest/browser": "^4.1.10",
|
|
"@vitest/browser-playwright": "^4.1.10",
|
|
"happy-dom": "^20.11.2",
|
|
"msw": "^2.15.0",
|
|
"playwright": "^1.62.1",
|
|
"tailwindcss": "^4.1.18",
|
|
"typescript": "^5.6.0",
|
|
"vitest": "^4.1.10",
|
|
"vitest-browser-react": "^2.2.0"
|
|
},
|
|
"engines": {
|
|
"bun": ">=1.0.0"
|
|
},
|
|
"packageManager": "[email protected]",
|
|
"dependencies": {
|
|
"loaders.css": "^0.1.2",
|
|
"react-loaders": "^3.0.1"
|
|
}
|
|
}
|