Bundlex.Project.Preprocessor behaviour (Bundlex v1.5.5)

View Source

Behaviour for preprocessing Bundlex projects.

Precompiling may involve either generating additional resources or altering the project itself. Currently, preprocessing native configuration (preprocess_native_config/3) and parsed natives (preprocess_native/1) is supported.

Summary

Types

t()

@type t() :: module()

Callbacks

preprocess_native(native)

@callback preprocess_native(native :: Bundlex.Native.t()) :: Bundlex.Native.t()

preprocess_native_config(name, app, config)

@callback preprocess_native_config(
  name :: atom(),
  app :: atom(),
  config :: Bundlex.Project.native_config()
) :: Bundlex.Project.native_config()