mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-04 05:41:29 +00:00
New standalone `app/` package (own package.json, like dash/) for the
CodeBurn Desktop Electron app. Adds the Vite 6 + React 19 + Vitest
toolchain, the verbatim wireframe CSS port (renderer/styles/indigo.css),
and the main-process `codeburn` CLI resolver + spawner:
- resolveCodeburnPath(): CODEBURN_BIN override → persisted-path file →
PATH/brew/nvm/volta/asdf → null (mirrors mac/CodeburnCLI.swift).
- spawnCli(args, {timeoutMs}): plain argv (no shell), collect stdout,
JSON.parse, structured CliError{kind: not-found|nonzero|bad-json|timeout}.
- cli.test.ts covers success / nonzero / bad-json / timeout / not-found.
37 lines
1.2 KiB
JSON
37 lines
1.2 KiB
JSON
{
|
|
"name": "codeburn-desktop",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"description": "CodeBurn Desktop — Electron app fed by the codeburn CLI",
|
|
"main": "dist/electron/main.js",
|
|
"scripts": {
|
|
"build:electron": "tsc -p tsconfig.electron.json",
|
|
"build:renderer": "vite build",
|
|
"build": "npm run build:electron && npm run build:renderer",
|
|
"dev": "npm run build:electron && concurrently -k -n vite,electron -c cyan,magenta \"vite\" \"wait-on tcp:127.0.0.1:5173 && cross-env VITE_DEV_SERVER_URL=http://localhost:5173 electron .\"",
|
|
"test": "vitest run",
|
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
},
|
|
"dependencies": {
|
|
"react": "^19.2.7",
|
|
"react-dom": "^19.2.7"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/node": "^26.1.1",
|
|
"@types/react": "^19.2.17",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^4.7.0",
|
|
"@vitest/ui": "^3.2.7",
|
|
"concurrently": "^10.0.3",
|
|
"cross-env": "^10.1.0",
|
|
"electron": "^43.1.0",
|
|
"jsdom": "^29.1.1",
|
|
"typescript": "^7.0.2",
|
|
"vite": "^6.4.3",
|
|
"vitest": "^3.2.7",
|
|
"wait-on": "^9.0.10"
|
|
}
|
|
}
|