ci: overlay @harb/ui-shared in webapp and landing CI services (#150)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e89fd4013d
commit
443eda25cf
1 changed files with 26 additions and 0 deletions
|
|
@ -199,6 +199,19 @@ services:
|
||||||
echo "@harb/web3 linked with wagmi/viem deps"
|
echo "@harb/web3 linked with wagmi/viem deps"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Overlay @harb/ui-shared shared package from workspace
|
||||||
|
if [ -d "$WS/packages/ui-shared" ]; then
|
||||||
|
mkdir -p /app/packages/ui-shared
|
||||||
|
cp -r "$WS/packages/ui-shared/." /app/packages/ui-shared/
|
||||||
|
# Link @harb/ui-shared into web-app node_modules
|
||||||
|
mkdir -p /app/web-app/node_modules/@harb
|
||||||
|
ln -sf /app/packages/ui-shared /app/web-app/node_modules/@harb/ui-shared
|
||||||
|
# Symlink vue into packages dir so @harb/ui-shared can resolve it
|
||||||
|
mkdir -p /app/packages/ui-shared/node_modules
|
||||||
|
ln -sf /app/web-app/node_modules/vue /app/packages/ui-shared/node_modules/vue
|
||||||
|
echo "@harb/ui-shared linked with vue dep"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "=== Starting webapp (pre-built image + source overlay) ==="
|
echo "=== Starting webapp (pre-built image + source overlay) ==="
|
||||||
cd /app/web-app
|
cd /app/web-app
|
||||||
# Explicitly set CI=true to disable Vue DevTools in vite.config.ts
|
# Explicitly set CI=true to disable Vue DevTools in vite.config.ts
|
||||||
|
|
@ -237,6 +250,19 @@ services:
|
||||||
echo "@harb/web3 linked for landing"
|
echo "@harb/web3 linked for landing"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Overlay @harb/ui-shared shared package from workspace
|
||||||
|
if [ -d "$WS/packages/ui-shared" ]; then
|
||||||
|
mkdir -p /app/packages/ui-shared
|
||||||
|
cp -r "$WS/packages/ui-shared/." /app/packages/ui-shared/
|
||||||
|
# Link @harb/ui-shared into landing node_modules
|
||||||
|
mkdir -p /app/landing/node_modules/@harb
|
||||||
|
ln -sf /app/packages/ui-shared /app/landing/node_modules/@harb/ui-shared
|
||||||
|
# Symlink vue into packages dir so @harb/ui-shared can resolve it
|
||||||
|
mkdir -p /app/packages/ui-shared/node_modules
|
||||||
|
ln -sf /app/landing/node_modules/vue /app/packages/ui-shared/node_modules/vue 2>/dev/null || true
|
||||||
|
echo "@harb/ui-shared linked for landing"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "=== Starting landing (pre-built image + source overlay) ==="
|
echo "=== Starting landing (pre-built image + source overlay) ==="
|
||||||
cd /app/landing
|
cd /app/landing
|
||||||
exec npm run dev -- --host 0.0.0.0 --port 5174
|
exec npm run dev -- --host 0.0.0.0 --port 5174
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue