fix: add @harb/analytics overlay to E2E pipeline
The E2E CI uses pre-built images and overlays workspace packages via symlinks. The new @harb/analytics package needs the same treatment as @harb/web3 and @harb/utils for both webapp and landing services. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
63f32bad9b
commit
d75ca8b1d4
1 changed files with 18 additions and 0 deletions
|
|
@ -228,6 +228,15 @@ services:
|
||||||
echo "@harb/utils linked with viem dep"
|
echo "@harb/utils linked with viem dep"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Overlay @harb/analytics shared package from workspace
|
||||||
|
if [ -d "$WS/packages/analytics" ]; then
|
||||||
|
mkdir -p /app/packages/analytics
|
||||||
|
cp -r "$WS/packages/analytics/." /app/packages/analytics/
|
||||||
|
mkdir -p /app/web-app/node_modules/@harb
|
||||||
|
ln -sf /app/packages/analytics /app/web-app/node_modules/@harb/analytics
|
||||||
|
echo "@harb/analytics linked for webapp"
|
||||||
|
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
|
||||||
|
|
@ -285,6 +294,15 @@ services:
|
||||||
echo "@harb/ui-shared linked for landing"
|
echo "@harb/ui-shared linked for landing"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Overlay @harb/analytics shared package from workspace
|
||||||
|
if [ -d "$WS/packages/analytics" ]; then
|
||||||
|
mkdir -p /app/packages/analytics
|
||||||
|
cp -r "$WS/packages/analytics/." /app/packages/analytics/
|
||||||
|
mkdir -p /app/landing/node_modules/@harb
|
||||||
|
ln -sf /app/packages/analytics /app/landing/node_modules/@harb/analytics
|
||||||
|
echo "@harb/analytics 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