feat: Add admin-ui build step to dss-setup.sh
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled

- Build production bundle during setup
- Use --legacy-peer-deps for npm install
- Ensures dist/ is ready for deployment

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
DSS
2025-12-10 22:48:54 -03:00
parent ae70dabbe5
commit 2cfe10d4aa

View File

@@ -93,11 +93,18 @@ log_ok "Python venv ready"
# Check admin-ui node_modules
if [ ! -d "$DSS_ROOT/admin-ui/node_modules" ]; then
log_info "Installing admin-ui dependencies..."
cd "$DSS_ROOT/admin-ui" && npm install
cd "$DSS_ROOT/admin-ui" && npm install --legacy-peer-deps
cd "$DSS_ROOT"
fi
log_ok "Node dependencies ready"
# Build admin-ui for production
log_info "Building admin-ui for production..."
cd "$DSS_ROOT/admin-ui"
npm run build 2>&1 | tail -5
cd "$DSS_ROOT"
log_ok "admin-ui built (dist/)"
echo ""
# ============================================================================