✨ Feature: Incremental builds analysis and implementation plan #50
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR provides a comprehensive analysis and implementation plan for incremental builds in Blake, addressing the current inefficiency where
blake bakeregenerates the entire site on every run regardless of changes.Problem Analysis
Currently, Blake processes all markdown files and regenerates all output files on every build, even when no source files have changed. This results in:
.razorfiles and content indexEvaluation of Options
After evaluating all proposed approaches:
blake serveRecommended Solution: Build Cache Manifest
The analysis recommends implementing a build cache manifest using a
.blake-cache.jsonfile that tracks:Key Benefits
package-lock.jsonin other build systemsImplementation Plan
The analysis provides a detailed 5-phase implementation plan with 15 sub-issues:
Phase 1: Core Infrastructure
IBuildCacheinterface and data structuresPhase 2: SiteGenerator Integration
SiteGenerator.BuildAsyncfor cache-aware processingGeneratedContentIndex.csonly when neededPhase 3: CLI Enhancements
--forceand--clean-cachecommand-line optionsPhase 4: Advanced Features
blake servePhase 5: Testing & Documentation
Files Added
docs/incremental-builds-analysis.md- Detailed evaluation of all options with pros/consdocs/incremental-builds-backlog.md- Complete implementation backlog with acceptance criteria for 15 sub-issuesdocs/incremental-builds-summary.md- Executive summary for creating GitHub issuesdocs/build-cache-implementation.md- Technical implementation strategy with code examplesExpected Impact
This analysis provides everything needed to begin implementation, including detailed acceptance criteria, code structure examples, and risk mitigation strategies. The approach follows Blake's philosophy of convention-over-configuration while providing substantial performance improvements.
Addressing #41.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.