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:
parent
a1b078b5e6
commit
683a70eace
|
|
@ -43,9 +43,12 @@ RUN bun install --frozen-lockfile
|
||||||
# Full source (excludes heavy local build outputs via .dockerignore).
|
# Full source (excludes heavy local build outputs via .dockerignore).
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Same pipeline as the Cloudflare Pages deploy (app.yml): build:packages →
|
# Build the workspace packages and the SPA. Deliberately NOT `bun run build`:
|
||||||
# lint → vite build. Lint runs on the vendored fork (includes our theme patch).
|
# that also runs the repo's oxlint quality gate (`lint:structure` + type-aware
|
||||||
RUN bun run build
|
# 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
|
# Prune to production dependencies so the runtime layer is lean. bun keeps
|
||||||
# workspace symlinks; the MCP server's deps (hono, @modelcontextprotocol/sdk,
|
# workspace symlinks; the MCP server's deps (hono, @modelcontextprotocol/sdk,
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"dev:portless": "portless run vite",
|
"dev:portless": "portless run vite",
|
||||||
"build": "bun run build:packages && bun run lint && vite build",
|
"build": "bun run build:packages && bun run lint && vite build",
|
||||||
|
"build:app": "vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"storybook": "storybook dev -p 6006",
|
"storybook": "storybook dev -p 6006",
|
||||||
"build-storybook": "storybook build",
|
"build-storybook": "storybook build",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue