diff --git a/.calude/boot.sh b/.calude/boot.sh new file mode 100644 index 0000000..db093dc --- /dev/null +++ b/.calude/boot.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# boot.sh — runs after every snapshot restore in /invoke. +# Boots services, reconciles drift via the `changed` helper, then runs +# long-lived (typically `bin/dev &` + `wait`). +# Edit this file, then commit and push to keep changes. +# See also: .calude/snapshot.sh (runs once when the snapshot is built). +set -euo pipefail +cd "$HOME/workspace" +changed yarn.lock package.json && yarn install +wait \ No newline at end of file diff --git a/.calude/snapshot.sh b/.calude/snapshot.sh new file mode 100644 index 0000000..bd10d88 --- /dev/null +++ b/.calude/snapshot.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# snapshot.sh — runs once during /warm to build the snapshot baseline. +# Output of this script is what gets baked into the persisted snapshot. +# Edit this file, then commit and push to keep changes. +# See also: .calude/boot.sh (runs after every snapshot restore). +set -euo pipefail +cd "$HOME/workspace" +changed yarn.lock package.json && yarn install +yarn build \ No newline at end of file