Throwaway prototypes for Sausage v3. Plan and decisions: ~/research/sausage-v3/PLAN.md. Results and evidence: the spike READMEs.
13 lines
802 B
Nu
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'} }
|
|
}
|