parent
66106077ba
commit
db3633425a
17 changed files with 18548 additions and 199 deletions
|
|
@ -58,16 +58,20 @@ steps:
|
|||
npm config set fund false
|
||||
npm config set audit false
|
||||
./scripts/build-kraiken-lib.sh
|
||||
npm install --prefix landing --no-audit --no-fund
|
||||
# Root install links workspace packages (@harb/web3) + all workspace members
|
||||
npm install --no-audit --no-fund
|
||||
# Landing (workspace member — deps already installed by root)
|
||||
npm run lint --prefix landing
|
||||
npm run build --prefix landing
|
||||
npm install --prefix web-app --no-audit --no-fund
|
||||
# Web-app (workspace member)
|
||||
npm run lint --prefix web-app
|
||||
npm run test --prefix web-app -- --run
|
||||
npm run build --prefix web-app
|
||||
# Ponder (standalone — not a workspace member)
|
||||
npm install --prefix services/ponder --no-audit --no-fund
|
||||
npm run lint --prefix services/ponder
|
||||
npm run build --prefix services/ponder
|
||||
# TxnBot (standalone)
|
||||
npm install --prefix services/txnBot --no-audit --no-fund
|
||||
npm run lint --prefix services/txnBot
|
||||
npm run test --prefix services/txnBot
|
||||
|
|
|
|||
|
|
@ -173,6 +173,20 @@ services:
|
|||
echo "webapp/src updated from workspace"
|
||||
fi
|
||||
|
||||
# Overlay @harb/web3 shared package from workspace
|
||||
if [ -d "$WS/packages/web3" ]; then
|
||||
mkdir -p /app/packages/web3
|
||||
cp -r "$WS/packages/web3/." /app/packages/web3/
|
||||
# Link @harb/web3 into web-app node_modules
|
||||
mkdir -p /app/web-app/node_modules/@harb
|
||||
ln -sf /app/packages/web3 /app/web-app/node_modules/@harb/web3
|
||||
# Symlink wagmi/viem into packages dir so @harb/web3 can resolve them
|
||||
mkdir -p /app/packages/web3/node_modules
|
||||
ln -sf /app/web-app/node_modules/@wagmi /app/packages/web3/node_modules/@wagmi
|
||||
ln -sf /app/web-app/node_modules/viem /app/packages/web3/node_modules/viem
|
||||
echo "@harb/web3 linked with wagmi/viem deps"
|
||||
fi
|
||||
|
||||
echo "=== Starting webapp (pre-built image + source overlay) ==="
|
||||
cd /app/web-app
|
||||
# Explicitly set CI=true to disable Vue DevTools in vite.config.ts
|
||||
|
|
@ -194,6 +208,23 @@ services:
|
|||
echo "landing/src updated from workspace"
|
||||
fi
|
||||
|
||||
# Overlay @harb/web3 shared package
|
||||
if [ -d "$WS/packages/web3" ]; then
|
||||
mkdir -p /app/packages/web3
|
||||
cp -r "$WS/packages/web3/." /app/packages/web3/
|
||||
# Landing CI image doesn't have wagmi — install it
|
||||
cd /app/landing
|
||||
npm install --no-audit --no-fund @wagmi/vue viem 2>/dev/null || true
|
||||
# Link @harb/web3
|
||||
mkdir -p /app/landing/node_modules/@harb
|
||||
ln -sf /app/packages/web3 /app/landing/node_modules/@harb/web3
|
||||
# Symlink wagmi/viem into packages dir for resolution
|
||||
mkdir -p /app/packages/web3/node_modules
|
||||
ln -sf /app/landing/node_modules/@wagmi /app/packages/web3/node_modules/@wagmi 2>/dev/null || true
|
||||
ln -sf /app/landing/node_modules/viem /app/packages/web3/node_modules/viem 2>/dev/null || true
|
||||
echo "@harb/web3 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue