Skip to content

Commit

Permalink
incremental build (#1146)
Browse files Browse the repository at this point in the history
* no_static -> build_static_files

* refactored out incremental_build()

* moved the caching utilities to fastn_core::utils

* cache stubs

* better cache plumbing

* some refactor

* better replacement when constructing file names

* utility should live in utils.rs

* removed edition 2021 support from fastn build

* removing un-needed functions

* build-dir plumbing

* not sure what was happening there, cleanuped code

* fastn build working

* some caching implementation

* get_build_content() implementation

* cache working, after ~3m, subsequent builds taking ~10s

* refactored out is_cached()

* implemented ftd content hash check

* cleaned up some code

* virtual file handling, ftd paths are incorrect

* some changes, not working yet

* some debug statements

* implement dependency resolver for incremental build

* created overwrite function to update ftd files

* fixed infinite loop in dependency resolution

* Fixed dependency resolver

* Handle cache miss

* minor fixes

* removed unneccessary code

* build path write fix for images

* fixed unresolved_dependencies files index

* testing stuff

* testing stuff 2

* Minor fix

* Log status for testing

* check for circular dependency

* removed all bugs in incremental build

* refactored code

* Minor fixes

* build assets

* handle deleted documents

* minor fixes

* proper document name check

* Remove deleted docs from build

* file exist check before deleting

* better path construction

* clippy fixes

* Merged main

* remove package name from dependencies

* no need to remove package name from doc id

* commented out print statements

* Fixed dependency naming bug

* delete empty folders from build

* Path separator fix

* conditional ftd.redirect

* fix windows cache dir

* id to cache key fix

* Delete ftd/t/js/test.html

Signed-off-by: Harsh Singh <[email protected]>

* fixed windows bugs

* fixed conflicts

* updated files

* clippy fixes

* refactored code

---------

Signed-off-by: Harsh Singh <[email protected]>
Co-authored-by: Harsh Singh <[email protected]>
Co-authored-by: heulitig <[email protected]>
Co-authored-by: Harsh Singh <[email protected]>
  • Loading branch information
4 people authored Sep 14, 2023
1 parent 16f792a commit a261f32
Show file tree
Hide file tree
Showing 7 changed files with 692 additions and 527 deletions.
Loading

0 comments on commit a261f32

Please sign in to comment.