From 1a1ba87a3968c69160ff763926ada6b8d3f65751 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Tue, 4 Jan 2022 19:45:40 -0300 Subject: [PATCH] fix(all): Migration to Linus. --- deploy.cmd | 2 +- deploy.sh | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/deploy.cmd b/deploy.cmd index e7bbbf1b0..4acd68451 100644 --- a/deploy.cmd +++ b/deploy.cmd @@ -115,7 +115,7 @@ IF EXIST "%DEPLOYMENT_TARGET%\deploy\default.gbui\package.json" ( popd ) -:: 4. Install typescript +:: 4. Install TypeScript echo [General Bots Deployer] Transpiling... call :ExecuteCmd node %DEPLOYMENT_TARGET%\node_modules\typescript\bin\tsc -v call :ExecuteCmd node %DEPLOYMENT_TARGET%\node_modules\typescript\bin\tsc -p "%DEPLOYMENT_TARGET%" diff --git a/deploy.sh b/deploy.sh index 461326194..ee9ac980d 100644 --- a/deploy.sh +++ b/deploy.sh @@ -77,23 +77,23 @@ if [ -e "$DEPLOYMENT_SOURCE/package.json" ]; then cd - > /dev/null fi -# # 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." -# exitWithMessageOnError "react build failed" -# cd - > /dev/null -# fi +# 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." + exitWithMessageOnError "react build failed" + cd - > /dev/null +fi -# 1.2 Install typescript +# 1.2 Install TypeScript echo "[General Bots Deployer] Transpiling..." eval ./node_modules/typescript/bin/tsc -v -eval ./node_modules/typescript/bin/tsc -p "%DEPLOYMENT_TARGET%" +eval ./node_modules/typescript/bin/tsc -p "$DEPLOYMENT_TARGET" echo "[General Bots Deployer] Deployment Finished."