MBU: Mix Build Utilities v0.2.4 MBU.BuildTask

BuildTask contains the macros that are used for making the tasks look nicer.

Summary

Functions

Sets up the necessary things for a build task

Replacement for Mix.Task’s run/1, used similarly. Code inside will be run when the task is called, with @deps being run first unless deps: false is given in the arguments

Functions

__using__(opts) (macro)

Sets up the necessary things for a build task.

Each build task should have use MBU.BuildTask at its beginning. BuildTask automatically requires Logger so that doesn’t need to be added into the task itself.

task(args, list) (macro)

Replacement for Mix.Task’s run/1, used similarly. Code inside will be run when the task is called, with @deps being run first unless deps: false is given in the arguments.