by

Using Alloy’s new BuildLog

The upcoming 1.2 version of Alloy uses a new utility module named BuildLog which reads and writes a JSON file at build/alloy/build.json. For now it’s used only to log the selected theme. This way the compiler can tell if the theme has changed since the previous compile and optimize the current one.

You can use this module in your alloy.jmk file to log other stuff you need to persist between builds. As an example, the following would use BuildLog to store and retrieve the timestamp of the last compile. You could use this then to search for specific changes since that time.

Just be aware Tony told me the module might not be around for long ;)