Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vtbag/element-crossing.
Transfer selected element state across cross-document view transitions. vtbag.dev/tools/element-crossing
Something went wrong. Try again.
497 B · 24 lines
at main
12345678910111213141516171819202122232425#! /bin/sh
rm -rf lib
if [ "$1" = "dev" ]; then OPTS="--sourcemap --watch" TSC_OPTS="--watch"elif [ "$1" = "test" ]; then OPTS="--sourcemap"else OPTS="--minify"fi
if echo "$TSC_OPTS" | grep -q -- "--watch"; then npx tsc $TSC_OPTS &else npx tsc $TSC_OPTS rm -rf lib/bundled npx esbuild src/vanilla.ts src/over-the-top.ts --bundle $OPTS --target=ESnext --outdir=lib # cp lib/*.js lib/*.map tests/public >/dev/null 2>&1fi
rm -f lib/over-the-top.d.tsrm -f lib/vanilla.d.ts