14 lines
427 B
Shell
14 lines
427 B
Shell
|
|
#!/usr/bin/env bash
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
||
|
|
|
||
|
|
temporary="$(mktemp -d)"
|
||
|
|
trap 'rm -rf "$temporary"' EXIT
|
||
|
|
|
||
|
|
cabal run nuthatch-generate-web-contract --offline -- \
|
||
|
|
"$temporary/contract.ts" \
|
||
|
|
"$temporary/contract.json"
|
||
|
|
cmp web/src/generated/contract.ts "$temporary/contract.ts"
|
||
|
|
cmp web/test/fixtures/contract.json "$temporary/contract.json"
|
||
|
|
cabal run nuthatch-web-contract-integration --offline
|