#!/usr/bin/env bash
set -euo pipefail

repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$repo_root"

cargo fmt --check
cargo test

(cd templates/full && cargo fmt --check && cargo check && npm run build:js)
(cd templates/auth && cargo fmt --check && cargo check)
(cd templates/starter && cargo fmt --check && cargo check)
