mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
Adds `pnpm dogfood:remote <remote_name> [--restart | --no-restart] [--clean] [--install-rust]` (also `mise run dogfood:remote`) for dogfooding backend changes in Remote Development without cross-compiling locally. It reads the host from Settings › Tools › SSH Configurations, checks SSH reachability and the minimum Rust version, syncs the backend workspace to `~/.cache/openidea-dogfood/workspace`, builds `openidea-server` there, installs it at the `~/.openidea/server/<version>/<build_id>` path `ensure_server` expects (so connecting doesn't upload another binary), stages the matching binary locally (`--clean` restores the release one), and asks before restarting a running server. The `build_id` hash uses `blake3` from the new `@noble/hashes` devDependency. Rust is installed on the host only with `--install-rust`. Closes #5135 Co-authored-by: dengliu <5108773+dengliu@users.noreply.github.com>
51 lines
1.4 KiB
TOML
51 lines
1.4 KiB
TOML
[tools]
|
|
node = "22.23.5"
|
|
# Use the JS distribution: pnpm's standalone release doesn't cover Intel Macs.
|
|
"npm:pnpm" = "11.28.12"
|
|
rust = { version = "1.100.0", profile = "minimal", components = ["rustfmt", "clippy"] }
|
|
|
|
[tasks.setup]
|
|
description = "Install frontend dependencies for this worktree"
|
|
run = "pnpm install"
|
|
|
|
[tasks.dev]
|
|
description = "Launch the desktop app with worktree isolation"
|
|
run = "pnpm tauri dev"
|
|
|
|
[tasks."dev:app"]
|
|
description = "Launch the desktop app with the global Tauri API enabled"
|
|
run = "pnpm dev:app"
|
|
|
|
[tasks.build]
|
|
description = "Typecheck, bundle and verify the frontend"
|
|
run = "pnpm build"
|
|
|
|
[tasks."dogfood:build"]
|
|
description = "Build a local dogfood desktop app bundle"
|
|
run = "pnpm dogfood:build"
|
|
|
|
[tasks."dogfood:install"]
|
|
description = "Build and install the local dogfood desktop app"
|
|
depends = ["dogfood:build"]
|
|
run = "pnpm dogfood:install --no-build"
|
|
|
|
[tasks."dogfood:remote"]
|
|
description = "Build and install a local dogfood openidea-server on a configured SSH remote"
|
|
run = "pnpm dogfood:remote"
|
|
|
|
[tasks.test]
|
|
description = "Run the frontend and Rust workspace tests"
|
|
run = ["pnpm test", "cargo test --workspace"]
|
|
|
|
[tasks.check]
|
|
description = "Check formatting, lint, types and unused code, then run the tests"
|
|
run = [
|
|
"pnpm format:check",
|
|
"pnpm lint",
|
|
"pnpm typecheck",
|
|
"pnpm knip",
|
|
"cargo fmt --all --check",
|
|
"cargo clippy --workspace --all-targets -- -D warnings",
|
|
{ task = "test" },
|
|
]
|