# README

Reusable Mage build tools

This package includes standard mage targets useful in the build.

See: https://magefile.org/magefiles/.

These targets can be used in your plugin project by creating Magefile.go in the root of your project like the following:

//+build mage

package main

import (
	// mage:import
	build "github.com/grafana/grafana-plugin-sdk-go/build"
)

// Default configures the default target.
var Default = build.BuildAll

https://magefile.org/importing/

# Packages

No description provided by the author

# Functions

BuildAll builds production executables for all supported platforms.
Clean cleans build artifacts, by deleting the dist directory.
Coverage runs backend tests and makes a coverage report.
Debugger makes a new debug build, re-launches the plugin and attaches the Delve debugger, in headless mode listening on port 3222.
Format formats the sources.
Lint audits the source style.
ReloadPlugin - kills any running instances and waits for grafana to reload the plugin.
SetBeforeBuildCallback configures a custom callback.
Test runs backend tests.

# Structs

Config holds the setup variables required for a build.

# Type aliases

BeforeBuildCallback hooks into the build process.
Build is a namespace.