Skip to content

Commit

Permalink
fix(all): Migration to Linus.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jan 4, 2022
1 parent ef5eb6c commit 35a4e4d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion deploy.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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%"
Expand Down
30 changes: 15 additions & 15 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.2 Install typescript
# 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
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."

Expand Down

0 comments on commit 35a4e4d

Please sign in to comment.