Restructure repo to apps/desktop/ portfolio skeleton (Tauri, unchanged) #52
Loading…
Reference in a new issue
No description provided.
Delete branch "restructure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adopts the portfolio-wide project skeleton from the Project Structure Study —
apps/desktop/{backend,frontend}with root-level workspace / lint / tsconfig config — without changing the desktop framework. An Electrobun port was scoped alongside and reverted (not worth the blast radius of rewriting ~8k LOC of Rustdocx_ops); Lily stays on Tauri and is now the Tauri-shaped worked example for the portfolio skeleton.Commits
c7a2dd8Movebackend/andfrontend/underapps/desktop/— puregit mv, 72 files renamed at 100% content match. Build is red between this commit and the next.92ad3b0Add root workspace scaffolding and update paths for new layout — rootpackage.json(workspaces),tsconfig.json(shared baseline),biome.json(shared config),bun.lock(unified lockfile). Updates.cargo/config.tomltarget-dir,tauri.conf.jsonicon paths, MakefileBACKEND/FRONTENDvars,.gitignorepatterns. Foldsfrontend/biome.jsoninto root. Biome autofix applied (import ordering + tab indent).4e07ddbHoist@tauri-apps/clito root devDeps, drop Makefile direct-path trick —@tauri-apps/cliis a build tool, belongs at root alongsidetypescriptand@biomejs/biome. Bun then hoists thetauribin to/node_modules/.bin/, andbunx tauriresolves from any cwd. Collapses the Makefile's direct-path invocation.Tauri-specific deviations from the study's Electrobun-default shape
apps/desktop/shared/— Tauri'sinvoke(name, args)is implicitly schema'd by the Rust#[tauri::command]+serdestructs, not by a TS module both sides import.apps/desktop/package.json— Tauri's canonical version lives intauri.conf.json+Cargo.toml;make versionsyncs those plus frontend + rootpackage.jsonin one pass.apps/desktop/tsconfig.json— frontend is the only TS surface; its tsconfig extends root directly..cargo/config.tomlin backend redirects Cargo'starget-dirto repo-roottarget/(matches the portfolio's "all build output undertarget/" convention).Verification
make check✓make lint✓ (some pre-existing warnings in legacy frontend code)make typecheck✓make test✓ — 68 Rust tests + 30 frontend testsbunx tauri -Vresolves from repo root,apps/desktop/backend/, andapps/desktop/frontend/✓Test plan
make setup && make dev; confirm Tauri window opens and dev reload works.make build-linux(or equivalent for your OS) and confirm installer builds land intarget/release/bundle/.make version V=0.5.1 && make version && make version V=0.5.0cleanly round-trips all four version-bearing files.apps/desktop/backend/tauri.conf.jsonicon paths resolve during bundling (icons show up on the built app).🤖 Generated with Claude Code