Skip to content

docs: Overhaul README and point to the documentation website - #142

Merged
Aukevanoost merged 2 commits into
mainfrom
docs/readme-overhaul
Sep 24, 2026
Merged

Aukevanoost merged 2 commits into
mainfrom
docs/readme-overhaul

Conversation

@Aukevanoost

Copy link
Copy Markdown
Contributor

Summary

The README had grown into a 905-line config reference and tutorial that duplicated (and drifted from) native-federation.com. This trims it to an overview (~100 lines) and links to the docs site for everything else, with the same layout as the core README in native-federation/native-federation-core#151.

README now contains

  • Badges, a one-line pitch and a prominent docs link
  • A v4 note linking to the docs migration page, ng update, and the v3 source
  • A short feature list
  • A versions table (native-federation for Angular 22+, native-federation-v4 for Angular 20–21)
  • A quick start: install, the two init commands and the federation.config.mjs the schematic generates
  • Links into every Angular adapter docs page, llms.txt, contributing, credits and license

Moved to the docs site (no longer in the README)

  • The tutorial and example walkthrough
  • Config reference (chunking, denseChunking, denseExternals, autoShareScope, fromPackageJson, shared mappings)
  • npm link / watchLinkedDeps, the Nx ɵɵdefineComponent FAQ and the custom builder examples
  • Links to the old angular-architects repo, blog posts and workshop promotion

Removed

  • MIGRATION_GUIDE.md, in favour of the migration page on the docs site

package.json

  • homepage now points to the Angular adapter docs, and bugs is added, so npmjs.com links to the docs and the issue tracker

Test plan

  • Every native-federation.com link in the README returns 200
  • prettier --check passes on README.md

Trim the README to an overview and link to native-federation.com for the
config reference, tutorial and FAQ. Drop MIGRATION_GUIDE.md in favour of
the migration page on the docs site, and set homepage and bugs in
package.json so npm links to the docs and the issue tracker.
@Aukevanoost
Aukevanoost merged commit 35754a1 into main Sep 24, 2026
1 check passed
Aukevanoost added a commit that referenced this pull request Sep 24, 2026
Backports 22.1.3..22.2.0 onto the Angular 21 layout.

Incoming:
- #138: each federation build context gets its own generated tsconfig
  (write-context-tsconfig) instead of rewriting `files` in
  tsconfig.federation.json, and every mapping/exposed context is disposed
  before the app build. init no longer writes `files`; the new update22-2
  migration removes it from existing tsconfig.federation.json files.
- #143: builder accepts a `define` option, merged over the Angular target's
  define for exposed modules and passed through to the dev server
  (createInternalAngularBuilder moved to internal-angular-builder.ts).
- #141: config types exported, shared builders accepted without get(), init
  generates the shared config with fromPackageJson and patches @angular/core.
- #142: README overhaul pointing to the documentation website;
  MIGRATION_GUIDE.md removed in favour of the website's migration guide.
- @softarc/native-federation ~4.7.0, jsonc-parser added, json5 dropped.

Angular 21 specific adaptations:
- Layout: write-context-tsconfig lands in src/utils/ next to the bundler;
  src/utils/update-federation-tsconfig.* is removed as on main. Comment
  pointers to tools/esbuild/ respelled to utils/.
- Skipped d535e07 (Angular 22.2 upgrade): node-modules-bundler keeps the 21.2
  JavaScriptTransformer/Cache signatures, and federation-source-files keeps
  reading SourceFileCache.keys(), which is still a Map on 21.2.
- internal-angular-builder drops instrumentForCoverage, which this branch
  never carried; it only forwards define.
- Restores the pre-app-build dispose (#47) that the earlier main merge
  (d00b9fc) dropped, now as disposeFederationContexts() per #138.
- update22-2 keeps main's path and key for easier future merges, versioned
  21.2.13 so it runs when updating the -v4 package.
- README respelled for -v4 (badges, install, init, config import, ng update)
  with the version example set to 21.2.x.
- Kept deleted as before: update22 schematic, share-utils.spec.ts and
  tools/esbuild/angular-esbuild-adapter.spec.ts.
- Kept the ng21 pins, -v4 package name, 21.2.12 version and the TS 5.9 /
  eslint 9 toolchain; took only the core bump and jsonc-parser from main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant