Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat: incremental rebuild in serve

Aperta
#22 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
backend

Direzione di ricerca

Start with Fanstatic/Commands/Serve/ServeCommand.cs:351 and SiteHelper.Init at :254 to trace the current rebuild flow; then inspect the rendering and test fixtures in Fanstatic.Test/ and .TestSites/. Run ./build.sh test and review dependencies #16 and #18 before tackling the dependency tracking and invalidation tasks. Done means each change type has integration coverage, incremental output matches a clean build, and editing one post on the 4000-post site refreshes the browser in under 100 ms.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

c:cli p:medium size:L t:feature

Part of the Phase 1 epic (#13).

Current State

serve rebuilds the whole site on every file change: ServeCommand.OnSourceFileChanged
(Fanstatic/Commands/Serve/ServeCommand.cs:351) ends in SiteHelper.Init (:254), which re-parses every file
and re-renders on request.

Tasks:
  • Track dependencies while rendering: page → templates/partials used, page → data files, list → children
  • Content edit: re-parse that file only and invalidate the pages that depend on it (parent lists, terms, home)
  • Template edit: recompile that template, invalidate pages that used it
  • Config edit: full rebuild (as today)
  • Integration tests for each change type

Tests live in Fanstatic.Test/ (xUnit + NSubstitute); fixture sites in .TestSites/. Run ./build.sh test; new/changed methods need CRAP ≤ 15 and ≥ 75 % line coverage.

Acceptance Criteria:
  • Editing one post on the 4000-post site refreshes the browser in < 100 ms.
  • Output after incremental rebuilds equals a clean build.
Related:
  • #13 (Phase 1 epic, parent)
  • Depends on #16
  • Depends on #18
Lingua principale
C#
Stelle
1
Fork
0
Merge medio
10h 23m
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MASS4ORG/Fanstatic

Tutte le issue di MASS4ORG/Fanstatic

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.