#!/usr/bin/env bash # Compiles the API (Release) and builds the web SPA. Acts as the compile gate before # tests/image builds run. set -euo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" && source ./lib.sh cd "$CI_ROOT" ensure_dotnet log "Restoring and publishing Novelly.Api (Release)" dotnet publish src/Novelly.Api/Novelly.Api.csproj -c Release log "Installing web dependencies (npm ci)" npm --prefix src/Novelly.Web ci log "Building the web client (vite build)" npm --prefix src/Novelly.Web run build log "build.sh complete"