feat: incremental rebuild in serve
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
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
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
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MASS4ORG/Fanstatic
-
c:templates p:low size:S t:task
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
-
c:content good first issue p:low size:S t:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
-
c:templates p:medium size:M t:feature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
c:content p:medium size:L t:feature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
c:templates p:medium size:S t:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 57/100
Tutte le issue di MASS4ORG/Fanstatic
Issue simili
-
area-signalr
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
dotnet/aspnetcore#69842 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
I maintainer di solito rispondono entro 2 giorni
-
bug needs-triage
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 78/100
microsoft/microsoft-ui-reactor#1373 ·
I maintainer di solito rispondono entro 1 giorno
-
Client customer-reported KeyVault needs-team-attention question Service Attention
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Azure/azure-sdk-for-net#63861 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
:watch: Not Triaged dotnet-csharp/svc fundamentals/subsvc
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno