View Source FsBuild.Adapter behaviour (FsBuild v1.1.1)
The specification of adapters.
Summary
Types
The content of file.
The main data transformed from file.
The metadata transformed from file.
The option for current adapter.
The path of file.
Types
Callbacks
@callback init(opts()) :: :ok
Prepares for following works, such as:
- checking required dependencies
- starting necessary applications
- ...
Transforms the content of files.
It must return:
- a 2 element tuple with attributes and body -
{data, metadata}
a list of 2 element tuple with attributes and body -
[{data, metadata} | _]