Skip to content

Commit

Permalink
Add a hack to build client faster
Browse files Browse the repository at this point in the history
  • Loading branch information
adamczykm committed Apr 30, 2024
1 parent 2c14f80 commit 4559d56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-smart-on-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,15 @@ jobs:
for package in "${packages[@]}"; do
echo "Building package: ${package}"
cd $package
npm install-ci
npm run build
if [[ "${package}" == "./minauth-demo/minauth-demo-client" ]]; then
echo "Running special build command for minauth-demo-client"
# Special command for minauth-demo-client
npm run dev-kill
else
# Standard build commands for other packages
npm install-ci
npm run build
fi
cd -
done
shell: bash
2 changes: 1 addition & 1 deletion minauth-demo/minauth-demo-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"install-ci": "npm install --unsafe-perm=true",
"dev": "next dev",
"dev-kill": "bash -c 'next dev & PID=$!; sleep 3; kill $PID; exit 0",
"dev-kill": "bash -c 'next dev & PID=$!; sleep 5; kill $PID; exit 0'",
"build": "node --max-old-space-size=8192 ./node_modules/.bin/next build",
"start": "next start",
"test": "echo \"Error: no tests here\" && exit 0",
Expand Down

0 comments on commit 4559d56

Please sign in to comment.