Skip to content

Commit

Permalink
use correct build mode for lrc
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Dec 15, 2020
1 parent 1ef6d46 commit 51d338f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"build:dev": "cross-env VUE_APP_TORUS_BUILD_ENV=development npm run pre-build && vue-cli-service build --mode development",
"build:binance": "cross-env VUE_APP_TORUS_BUILD_ENV=binance npm run pre-build && vue-cli-service build --mode binance && npm run post-build",
"build:testing": "cross-env VUE_APP_TORUS_BUILD_ENV=testing npm run pre-build && vue-cli-service build --mode testing",
"build:lrc": "cross-env VUE_APP_TORUS_BUILD_ENV=lrc npm run pre-build && vue-cli-service build --mode lrc",
"build:alpha-branches": ". ./scripts/buildAlpha.sh",
"dev": "cross-env NODE_ENV=development VUE_APP_TORUS_BUILD_ENV=development node server.js",
"locale": "node ./scripts/importLocales.js",
Expand Down
10 changes: 9 additions & 1 deletion app/scripts/buildAlpha.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
export VUE_APP_TORUS_BUILD_ENV="$CIRCLE_BRANCH"
export VUE_APP_BASE_ROUTE="https://"$CIRCLE_BRANCH".tor.us"
if [ "$CIRCLE_BRANCH" = "lrc" ]
then
export BUILD_MODE="$CIRCLE_BRANCH"
else
export BUILD_MODE="baselrc"
fi

echo $VUE_APP_TORUS_BUILD_ENV
echo $VUE_APP_BASE_ROUTE
cross-env VUE_APP_TORUS_BUILD_ENV="$CIRCLE_BRANCH" npm run pre-build && vue-cli-service build --mode baselrc
echo $BUILD_MODE
cross-env VUE_APP_TORUS_BUILD_ENV="$CIRCLE_BRANCH" npm run pre-build && vue-cli-service build --mode "$BUILD_MODE"

0 comments on commit 51d338f

Please sign in to comment.