Hook
The [[hooks]]
list is used to define command hooks; see hooks for more detail.
If a command begins with a period (.
) it is resolved relative to the project directory.
command
Path to the command to execute (required)args
List of string arguments to pass to the command (optional)after
Run the hook after compiler execution (optional, defaultfalse
)profiles
Execute only for the given build profiles (optional)files
List of file glob patterns that this hook owns (optional)watch
Trigger this hook when one of the matchedfiles
changes (optional, defaultfalse
)stdout
Print command stdout (defaulttrue
)stderr
Print command stderr (defaulttrue
)
Hooks are only executed when the --exec
option is passed.