Skip to content

Migrate to standalone components, remove all NgModules - #609

Merged
dcaslin merged 2 commits into
masterfrom
dcaslin/standalone-components
Apr 5, 2026
Merged

Migrate to standalone components, remove all NgModules#609
dcaslin merged 2 commits into
masterfrom
dcaslin/standalone-components

Conversation

@dcaslin

@dcaslin dcaslin commented Apr 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Ran Angular standalone migration schematic (3 steps: convert-to-standalone, prune-ng-modules, standalone-bootstrap)
  • All 129 components now standalone: true with per-component imports
  • Deleted all 21 NgModule files: SharedModule, MilestoneCheckModule, AppRoutingModule, PipeModule, SignInRequiredModule, and 12 feature modules + AppModule
  • main.ts uses bootstrapApplication() with provideRouter(), provideServiceWorker(), provideHttpClient(), provideAnimations()
  • Moved MAT_TOOLTIP_DEFAULT_OPTIONS from MilestoneCheckModule to MilestoneCheckComponent providers
  • Deleted Destroyable base class; simplified LoggedInGuard (app-lifetime singleton, no unsubscribe needed)
  • Created app.routes.ts with exported appRoutes array + guard classes
  • Updated CLAUDE.md and docs/modernization-plan.md
  • Version bumped to 29.2.0

Verification

  • ng build — clean ✅
  • ng build --configuration production — 2.96 MB initial bundle ✅
  • npm run lint — 0 errors (465 pre-existing no-explicit-any warnings) ✅
  • Zero NgModule references remain in src/app/

Test plan

  • CI build passes
  • Smoke test: home, player profile, gear, clan, settings
  • Verify service worker registration in production build
  • Verify route guards work (manifest loading, login required pages)

🤖 Generated with Claude Code

dcaslin and others added 2 commits April 5, 2026 10:53
Run Angular standalone migration schematic (convert, prune, bootstrap),
then manually delete all 15 remaining NgModule files (SharedModule,
MilestoneCheckModule, 12 feature modules, AppRoutingModule). Move
MAT_TOOLTIP_DEFAULT_OPTIONS to MilestoneCheckComponent providers.
Convert bootstrapApplication to use provideRouter/provideServiceWorker.
Delete Destroyable base class; simplify LoggedInGuard. Update CLAUDE.md
and modernization plan.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dcaslin
dcaslin merged commit 9662867 into master Apr 5, 2026
1 check passed
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