#!/usr/bin/env bash

set -euo pipefail

# Set this to a placeholder that can be replaced post-compilation.
export VUE_APP_MAPBOX_TOKEN="##MAPBOX_TOKEN##"

./install_yarn.sh

# Install dependencies.
yarn install --frozen-lockfile

# Lint the entire project.
yarn lint --no-fix

# Run unit tests.
yarn test:unit

# Make a production build.
yarn build
