Skip to content

Commit

Permalink
unify build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
steam0r committed Mar 19, 2024
1 parent 96a9394 commit 1b2dd64
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build_all.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
cd shared
npm run build
cd ..
cd cables
npm run build
cd ..
Expand Down
1 change: 1 addition & 0 deletions hook_shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ git pull
nvm install
nvm use
npm install
npm run build

cd ~/cables/cables_ui
git pull
Expand Down
2 changes: 1 addition & 1 deletion hook_standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $NPM_EXE install
echo "BUILDING shared"
cd shared
git pull
$NPM_EXE install
$NPM_EXE run build
cd ..

echo "BUILDING cables"
Expand Down
1 change: 1 addition & 0 deletions shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"type": "module",
"license": "MIT",
"scripts": {
"build": "npm install",
"postinstall": "npm --prefix ./api install && npm --prefix ./client install"
}
}
11 changes: 11 additions & 0 deletions update_live.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ set -o pipefail

# set master branch
branch="master"
echo "UPDATING SHARED..."
cd shared

# ignore errors here, since branch might not be on remote
git checkout master
git pull
nvm install
nvm use
npm install
npm run build
cd ..

echo "UPDATING CORE..."
cd cables
Expand Down

0 comments on commit 1b2dd64

Please sign in to comment.