Hooks for integrating npm operations with Mix workflows.
Provides callbacks that can be triggered before and after npm operations, useful for mix compiler integration and build pipelines.
Summary
Functions
Available hook points.
List all configured hooks.
Check if a hook is configured.
Run a hook callback if configured.
Types
Functions
@spec available() :: [hook()]
Available hook points.
List all configured hooks.
Check if a hook is configured.
Run a hook callback if configured.
Hooks are configured via application config:
config :npm, hooks: %{
post_install: {MyApp, :on_npm_install, []}
}