#!/usr/bin/env bash
set -e
cd "$(dirname $(dirname "$0"))" || exit

PYTHON_VERSION=3.12
poetry env use ${PYTHON_VERSION}
poetry install

cd static || exit

if [[ -f $HOME/.nvm/nvm.sh ]]; then
    source "$HOME/.nvm/nvm.sh"
    nvm use
fi
npm ci
