vega-frontend-monorepo/docker/prepare-dist.sh
2023-07-04 13:01:25 +02:00

14 lines
348 B
Bash
Executable File

#!/bin/bash -e
yarn --pure-lockfile
app=${1:-trading}
envCmd="envCmd="yarn env-cmd -f ./apps/${app}/.env.${2:-mainnet}"
yarn install
if [ "${app}" = "trading" ]; then
$envCmd yarn nx export trading
DIST_LOCATION=dist/apps/trading/exported
else
$envCmd yarn nx build ${app}
DIST_LOCATION=dist/apps/${app}
fi
cp -r $DIST_LOCATION dist-result