#!/bin/sh
set -e

cd "$(dirname "$0")/.."

echo "building..."
deno task build

echo "preparing deploy dir..."
rm -rf deploy
mkdir -p deploy

cp index.html deploy/
cp style.css deploy/
cp -R dist deploy/
cp -R assets deploy/

echo "done — deploy/ is ready for wispctl deploy"
echo "    run: wispctl deploy <handle> --path deploy --site deftoku"
