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

14 lines
308 B
Bash
Raw Normal View History

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