Files
sausage/spikes/s1-v8-harness/verify.nu
T
surma 9e9cde5241 spikes: six v3 spikes (V8 harness, WASI shell, git, builder, http hook, esbuild)
Throwaway prototypes for Sausage v3. Plan and decisions:
~/research/sausage-v3/PLAN.md. Results and evidence: the spike READMEs.
2026-11-06 14:03:20 +00:00

13 lines
802 B
Nu

#!/usr/bin/env nu
# Build the three bundles and execute them with the same Rust binary.
$env.NODE_PATH = '/tmp/s1-v8-harness/node_modules'
^/tmp/s1-v8-harness/node_modules/.bin/esbuild spikes/s1-v8-harness/21.ts spikes/s1-v8-harness/23.ts spikes/s1-v8-harness/real.ts --bundle --format=esm --platform=browser --outdir=/tmp/s1-v8-harness/bundles
if $env.LAST_EXIT_CODE != 0 { error make {msg: 'Bundle failed'} }
^nix develop -c cargo build --manifest-path spikes/s1-v8-harness/Cargo.toml -j 2
if $env.LAST_EXIT_CODE != 0 { error make {msg: 'Build failed'} }
for example in ['21' '23' 'real'] {
print $'Example ($example):'
^spikes/s1-v8-harness/target/debug/s1-v8-harness $'/tmp/s1-v8-harness/bundles/($example).js'
if $env.LAST_EXIT_CODE != 0 { error make {msg: $'Example ($example) failed'} }
}