A number of lifecycle hooks are available for use in triggering actions outside of Lookbook. Hook callbacks can be registered when configuring your Lookbook installation.
All hook callback blocks are yielded the main
Lookbook application object
as the first argument. Some hooks additionally supply other arguments - see below for details.
The following hooks are available to register callbacks on:
Add a callback to run after app initialization.
Add a callback to run before Lookbook shuts down.
Add a callback to run when a change to a watched file occurs. Only called when an evented file watcher is being used to detect changes.