mixins

package
v1.0.0-alpha.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

mixins page contains magefile targets that perform common tasks that all mixins perform

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Magefile

type Magefile struct {
	Pkg       string
	MixinName string
	BinDir    string
}

func NewMagefile

func NewMagefile(pkg, mixinName, binDir string) Magefile

Create a magefile helper for a mixin

func (Magefile) Build

func (m Magefile) Build()

Build the mixin

func (Magefile) Clean

func (m Magefile) Clean()

Remove generated build files

func (Magefile) Install

func (m Magefile) Install()

Install the mixin

func (Magefile) Publish

func (m Magefile) Publish()

Publish the mixin and its mixin feed

func (Magefile) PublishBinaries

func (m Magefile) PublishBinaries()

Publish binaries to a github release Requires PORTER_RELEASE_REPOSITORY to be set to github.com/USERNAME/REPO

func (Magefile) PublishMixinFeed

func (m Magefile) PublishMixinFeed()

Publish a mixin feed Requires PORTER_PACKAGES_REMOTE to be set to git@github.com:USERNAME/REPO.git

func (Magefile) Test

func (m Magefile) Test()

Run all tests

func (Magefile) TestPublish

func (m Magefile) TestPublish(username string)

Test out publish locally, with your github forks Assumes that you forked and kept the repository name unchanged.

func (Magefile) TestUnit

func (m Magefile) TestUnit()

Run unit tests

func (Magefile) XBuildAll

func (m Magefile) XBuildAll()

Cross-compile the mixin before a release

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL