2023-05-09 16:24:39 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
yarn --pure-lockfile
|
2023-05-10 11:33:17 +00:00
|
|
|
app=${1:-trading}
|
|
|
|
flags="--env=${2:-mainnet}"
|
2023-05-09 16:24:39 +00:00
|
|
|
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
|