build(web-vue): skip the repo lint gate when building the image

- Build with `build:packages` + the new `build:app` script instead of
  `build`, which also ran oxlint (lint:structure + type-aware oxlint over
  ~2k files): linting is a CI/`bun run check` concern, not an image step
- Removes ~7 s per image build and the fork's pre-existing `max-lines`
  warnings for three upstream files from the w4c deploy log
This commit is contained in:
Vitali sharp8n 2026-09-17 23:43:28 +03:00
parent a1b078b5e6
commit 683a70eace
2 changed files with 7 additions and 3 deletions

View file

@ -43,9 +43,12 @@ RUN bun install --frozen-lockfile
# Full source (excludes heavy local build outputs via .dockerignore).
COPY . .
# Same pipeline as the Cloudflare Pages deploy (app.yml): build:packages →
# lint → vite build. Lint runs on the vendored fork (includes our theme patch).
RUN bun run build
# Build the workspace packages and the SPA. Deliberately NOT `bun run build`:
# that also runs the repo's oxlint quality gate (`lint:structure` + type-aware
# oxlint over ~2k files). Linting is a CI/`bun run check` concern, not an image
# build step — it added ~7 s and spammed the deploy log with the fork's
# pre-existing `max-lines` warnings for three upstream files.
RUN bun run build:packages && bun run build:app
# Prune to production dependencies so the runtime layer is lean. bun keeps
# workspace symlinks; the MCP server's deps (hono, @modelcontextprotocol/sdk,

View file

@ -22,6 +22,7 @@
"dev": "vite",
"dev:portless": "portless run vite",
"build": "bun run build:packages && bun run lint && vite build",
"build:app": "vite build",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",