gustwind
gustwind copied to clipboard
Set up an incremental compiler
The idea would be to check an earlier compilation (hash against the JSON files?) and avoid compilation when possible. The current design already allows this but extra logic is needed.
The general strategy for this is as follows:
- Get changed files from Git
- Return only routes that are affected - this means checking components usages in components and layouts (a big check!)
- Pull earlier build (zip) and generate the changed routes on top of that
- Store the build (zip)
Likely the easiest way to deal with the zip is to include it to the site itself. In case it's missing, a full build should be performed.