Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .config/mise/tasks/dev/desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
#MISE description="Install, build the resource monitor, then start the desktop dev runner"
#MISE depends=["ensure:resource-monitor"]
set -euo pipefail
cd "$MISE_PROJECT_ROOT"
vp run dev:desktop "$@"
6 changes: 6 additions & 0 deletions .config/mise/tasks/ensure/resource-monitor
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
#MISE description="Build the native resource monitor sidecar the server loads in dev"
#MISE depends=["install"]
set -euo pipefail
cd "$MISE_PROJECT_ROOT"
vp run build:resource-monitor
5 changes: 5 additions & 0 deletions .config/mise/tasks/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
#MISE description="Install workspace dependencies"
set -euo pipefail
cd "$MISE_PROJECT_ROOT"
vp i
4 changes: 4 additions & 0 deletions docs/operations/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Use `vp run dev` for server and web, or `vp run dev:desktop` for the Electron cl
`dev:server` and `dev:web` start those processes separately.
See the [mobile README](../../apps/mobile/README.md) for native builds and Metro.

The server also loads the native resource monitor, which a fresh checkout has not built, so
`mise run dev:desktop` installs dependencies, builds `native/resource-monitor`, and then starts
`vp run dev:desktop`. The tasks live in `.config/mise/tasks`.

Flags go directly after the task name, for example `vp run dev --home-dir /tmp/t3code-dev`.
Add `--browser` to open a browser automatically.

Expand Down
Loading