vega-frontend-monorepo/docker/prepare-dist.sh

14 lines
341 B
Bash
Raw Normal View History

#!/bin/bash -e
yarn --pure-lockfile
2023-05-10 11:33:17 +00:00
app=${1:-trading}
2023-11-08 09:43:36 +00:00
envCmd="envCmd="yarn -f ./apps/${app}/.env.${2:-mainnet}"
yarn install
if [ "${app}" = "trading" ]; then
$envCmd yarn nx export trading
2023-11-08 09:43:36 +00:00
DIST_LOCATION=dist/apps/trading/exported/
else
$envCmd yarn nx build ${app}
DIST_LOCATION=dist/apps/${app}
fi
cp -r $DIST_LOCATION dist-result