#!/usr/bin/env bash

set -euo pipefail

current_directory="$(pwd)"

DRIVING_ROOT="$(git rev-parse --show-toplevel)"
SPECTRUM_ROOT=${DRIVING_ROOT}/spectrum
FIREFLY_ROOT=${SPECTRUM_ROOT}/apps/firefly

main(){
  link_spectrum_ui
}

link_spectrum_ui(){
    pushd ${SPECTRUM_ROOT}/spectrum-ui/
    yarn
    yarn build
    yarn link
    popd
    yarn link @zoox/spectrum-ui
}

main
