gustwind icon indicating copy to clipboard operation
gustwind copied to clipboard

Set up an incremental compiler

Open bebraw opened this issue 4 years ago • 1 comments

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.

bebraw avatar Nov 10 '21 11:11 bebraw

The general strategy for this is as follows:

  1. Get changed files from Git
  2. Return only routes that are affected - this means checking components usages in components and layouts (a big check!)
  3. Pull earlier build (zip) and generate the changed routes on top of that
  4. 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.

bebraw avatar Dec 21 '22 14:12 bebraw