build

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AfterBuilder

type AfterBuilder interface {
	core.Plugin
	RunAfterBuild(string, []string) error
}

AfterBuilder interface allows to identify the things that will run after the build process has ended, things like cleanup and reverting go here

type BeforeBuilder

type BeforeBuilder interface {
	core.Plugin
	RunBeforeBuild(context.Context, string, []string) error
}

BeforeBuilder interface allows to identify the things that will run before the build process has started.

type Builder

type Builder interface {
	core.Plugin
	Build(context.Context, string, []string) error
}

Builder interface allows to set the build steps to be run.

type Command

type Command struct {
	// contains filtered or unexported fields
}

func (Command) Alias

func (c Command) Alias() string

func (*Command) Flags

func (b *Command) Flags() *pflag.FlagSet

func (Command) HelpText

func (b Command) HelpText() string

HelpText returns the help Text of build function

func (Command) Name

func (b Command) Name() string

func (Command) ParentName

func (b Command) ParentName() string

func (*Command) ParseFlags

func (b *Command) ParseFlags(args []string)

func (*Command) Receive

func (b *Command) Receive(plugins []core.Plugin)

func (*Command) Run

func (b *Command) Run(ctx context.Context, root string, args []string) error

Run builds a buffalo app from within the root folder of the project To do so, It:x - Sets GO_ENV to be production - Runs NPM or YARN depending on what if finds - Runs Packr, Pkger or Other Packing tool - Injects database.yml and inflections. - Overrides main.go to add migrate - Runs go build

Jump to

Keyboard shortcuts

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