diff --git a/.woodpecker/e2e.yml b/.woodpecker/e2e.yml index dff4408..4e598ea 100644 --- a/.woodpecker/e2e.yml +++ b/.woodpecker/e2e.yml @@ -184,6 +184,12 @@ services: cp -r "$WS/web-app/src/." /app/web-app/src/ echo "webapp/src updated from workspace" fi + for f in vite.config.ts vite.config.js; do + if [ -f "$WS/web-app/$f" ]; then + cp "$WS/web-app/$f" /app/web-app/"$f" + echo "webapp/$f updated from workspace" + fi + done # Overlay @harb/web3 shared package from workspace if [ -d "$WS/packages/web3" ]; then @@ -219,6 +225,12 @@ services: cp -r "$WS/landing/src/." /app/landing/src/ echo "landing/src updated from workspace" fi + for f in vite.config.ts vite.config.js; do + if [ -f "$WS/landing/$f" ]; then + cp "$WS/landing/$f" /app/landing/"$f" + echo "landing/$f updated from workspace" + fi + done # Overlay @harb/web3 shared package if [ -d "$WS/packages/web3" ]; then @@ -237,6 +249,19 @@ services: echo "@harb/web3 linked for landing" 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) ===" cd /app/landing exec npm run dev -- --host 0.0.0.0 --port 5174 diff --git a/landing/package.json b/landing/package.json index 76861d6..e724ca8 100644 --- a/landing/package.json +++ b/landing/package.json @@ -18,6 +18,7 @@ }, "dependencies": { "@harb/web3": "*", + "@harb/ui-shared": "*", "@tanstack/vue-query": "^5.92.9", "@wagmi/vue": "^0.2.8", "sass": "^1.83.4", diff --git a/landing/src/components/WalletCard.vue b/landing/src/components/WalletCard.vue index a2c68c8..c39dba3 100644 --- a/landing/src/components/WalletCard.vue +++ b/landing/src/components/WalletCard.vue @@ -1,5 +1,6 @@