Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/heft > IHeftLifecycleHooks

IHeftLifecycleHooks interface

Hooks that are available to the lifecycle plugin.

Signature:

export interface IHeftLifecycleHooks 

Properties

PropertyModifiersTypeDescription
cleanAsyncParallelHook<IHeftLifecycleCleanHookOptions>The clean hook is called at the beginning of Heft execution. It can be used to clean up any files or folders that may be produced by the plugin. To use it, call clean.tapPromise(<pluginName>, <callback>).
recordMetricsAsyncParallelHook<IHeftRecordMetricsHookOptions>
toolFinishAsyncParallelHook<IHeftLifecycleToolFinishHookOptions>The toolFinish hook is called at the end of Heft execution. It is called after all phases have completed execution. To use it, call toolFinish.tapPromise(<pluginName>, <callback>).
toolStartAsyncParallelHook<IHeftLifecycleToolStartHookOptions>The toolStart hook is called at the beginning of Heft execution, after the clean hook. It is called before any phases have begun to execute. To use it, call toolStart.tapPromise(<pluginName>, <callback>).