Repository navigation
docs(site): add serve options, scripts and per-file fixes to migrating from ng build - #171
Merged
Merged
Conversation
…g from ng build Someone moving a plain CLI app read Getting started and Migrating from ng build, and neither had the per-file fixes the Benchmarks apps needed, nor ng serve's options, the scripts or the test target. Migrating now has a table for every dev-server option checked against @angular/build 22.3.0's schema and Vite 8.3's types, the proxy file's differences, the scripts, index.html and tests, and a section on type-only re-exports, decorator metadata, TypeScript transformers, TypeScript 7 and template errors ngc doesn't report, each with what you see, why and the fix, and the evidence from the bench's patches. It says what to read in which order, Getting started's Next list starts with it, and Nx and Benchmarks link the new section instead of repeating it. Closes #153 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ChristopherPHolder
force-pushed
the
docs/migration-gotchas
branch
from
December 4, 2026 04:37
5a0c1fb to
4fc479f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #153
What changed
site/content/migrating-from-ng-build.md@angular/build:dev-server's schema:port,host,proxyConfig,ssl/sslKey/sslCert,headers,open,allowedHosts,define,servePath,hmr,liveReload,watch/poll,verbose,inspect,prebundle,buildTarget. Each row gives its Vite setting.context, andpathRewrite.package.jsonscripts, the CLI'ssrc/index.htmlagainst Vite's rootindex.html(linking Getting started step 3), and thetesttarget (linking Testing with Vitest).bench/real/*.patchand the bench configs:emitDecoratorMetadata$any()Other pages, line-local only
getting-started.md: only the Next list changed. Migrating is now first, saying it's the next page when you're moving an app (feat(create-ngp): publish an unscoped create-ngp so vp create ngp works #136, ci(workflows): run the packed plugin on windows with the wasm engine #149 and docs(site): correct stale facts on comparison, getting started and performance #163 also touch this page).nx.md: the two gotcha bullets in "Libraries compile with the app" are shorter. Each keeps its Nx-specific facts and links the new subsection. Nothing else changed (test(create-ngp): run the app template's spec on jsdom and in chromium under vp test #137, feat(vite-plugin-ngp): add ngp-generate and a create-ngp monorepo layout #139 and feat(vite-plugin-ngp): add routes, library exports and an application schematic to ngp-generate #150 also touch this page).benchmarks.md: one sentence added to "What the apps needed", linking the new section. The evidence paragraphs stay, because they document what was patched in the measured sources.changelog.md: a line under 4 December 2026 → Docs.How I checked it
dist/node/index.d.tsinnode_modules:CommonServerOptions,ServerOptions(hmr,ws,watch: … | null),ProxyOptions. I also read its proxy matcher (^keys are regexes, other keys are prefixes), the effect ofserver.hmr: falseon file changes,vite --help(--profile), and the default port, 5173.ng serveoptions: read from the@angular/build@22.3.0package:dev-server/schema.json,vite/server.js(basic-ssl whensslis set without files,ws: falsewhen bothliveReloadandhmrare off), andutils/load-proxy-config.js(glob, array andpathRewriteconversion).bench/real/super-productivity.patch,bench/real/ghostfolio.patch, bothvite.config.ngp.mjsfiles,bench-typia.mjsandisolated-modules-fix.mjs.pnpm docs:checkreports 19 pages and 472 links, all in step.pnpm site:buildpasses.site/dist/clientstatically under/vite-plugin-ngp/on port 4333 and looked at the new sections at 1280 px in light mode and 390 px in dark mode. No horizontal page scroll; code blocks scroll inside their box, as the existing ones do.pnpm test, because sibling worktrees share its fixed ports. This PR changes docs only.🤖 Generated with Claude Code