From d8e950c91dc7332885b9b38ab9bbc22cffe656f6 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Wed, 5 Jan 2022 19:31:41 -0300 Subject: [PATCH] fix(all): Migration to Linus. --- deploy.sh | 16 ++++++++++++++++ packages/core.gbapp/services/GBDeployer.ts | 8 ++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index 78eb3ea5..c37236ac 100644 --- a/deploy.sh +++ b/deploy.sh @@ -77,11 +77,27 @@ if [ -e "$DEPLOYMENT_SOURCE/package.json" ]; then cd - > /dev/null fi + # 2. Install TypeScript echo "[General Bots Deployer] Transpiling..." eval ./node_modules/typescript/bin/tsc -v eval ./node_modules/typescript/bin/tsc -p "$DEPLOYMENT_SOURCE" +# 1.1 Install default.gbui npm packages +if [ -e "$DEPLOYMENT_SOURCE/packages/default.gbui/package.json" ]; then + echo "[General Bots Deployer] Running npm install for default.gbui..." + cd "$DEPLOYMENT_SOURCE/packages/default.gbui" + eval npm install + exitWithMessageOnError "npm failed" + echo "[General Bots Deployer] Building react app..." + eval npm run build + echo "[General Bots Deployer] OK." + cd "$DEPLOYMENT_SOURCE" + exitWithMessageOnError "react build failed" + cd - > /dev/null +fi + + echo "[General Bots Deployer] OK." # 4. KuduSync diff --git a/packages/core.gbapp/services/GBDeployer.ts b/packages/core.gbapp/services/GBDeployer.ts index b21ee71b..f1ddc9c1 100644 --- a/packages/core.gbapp/services/GBDeployer.ts +++ b/packages/core.gbapp/services/GBDeployer.ts @@ -808,12 +808,12 @@ export class GBDeployer implements IGBDeployer { // Install modules and compiles the web app. - GBLog.info(`Installing modules default.gbui (It may take a few minutes)...`); + // GBLog.info(`Installing modules default.gbui (It may take a few minutes)...`); - child_process.execSync(`${npm} install`, { cwd: root }); + // child_process.execSync(`${npm} install`, { cwd: root }); - GBLog.info(`Transpiling default.gbui...`); - child_process.execSync(`${npm} run build`, { cwd: root }); + // GBLog.info(`Transpiling default.gbui...`); + // child_process.execSync(`${npm} run build`, { cwd: root }); } }