Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

feat: incremental rebuild in serve

Abierto
#22 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
csharp
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
C#
Estrellas
1
Forks
0
Merge medio
10 h 23 min
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de MASS4ORG/Fanstatic

Todos los issues de MASS4ORG/Fanstatic

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.