Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vtbag/utensil-drawer.
Pull out just the functions you need to craft seamless view transitions! vtbag.dev/tools/utensil-drawer
Something went wrong. Try again.
451 B · 23 lines
at main
123456789101112131415161718192021222324#! /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 tsc $TSC_OPTS &else tsc $TSC_OPTS rm -rf lib/bundled npx esbuild src/bundled/*.ts --bundle $OPTS --target=ESnext --outdir=lib/bundled cp lib/*.js lib/bundled/*.js lib/bundled/*.map tests >/dev/null 2>&1fi
exit 0