build

package
v2.0.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetBuilder

type AssetBuilder interface {
	BuildAssets(ctx context.Context, root string, cmd *exec.Cmd) error
}

type Builder

type Builder struct {
	Environment string
	// CleanAssets will remove the public/webpack folder build compiling
	Clean bool
	// places ./public/webpack into ./bin/webpack.zip.
	Extract    bool
	ExtractTo  string // ./bin
	AssetPaths []string
	Skip       bool
	Tool       string // default is npm
	// contains filtered or unexported fields
}

Builder is responsible for building webpack and other webpack

func (*Builder) BeforeBuild

func (a *Builder) BeforeBuild(ctx context.Context, root string, args []string) error

BeforeBuild implements the build.BeforeBuilder interface to hook into the `buffalo build` lifecycle.

func (*Builder) Build

func (bc *Builder) Build(ctx context.Context, root string, args []string) error

Build implements the build.Builder interface to so it can be run as `buffalo build webpack`.

func (*Builder) BuildFlags

func (a *Builder) BuildFlags() []*pflag.Flag

func (Builder) CmdName

func (a Builder) CmdName() string

func (Builder) Description

func (a Builder) Description() string

func (*Builder) Flags

func (a *Builder) Flags() *pflag.FlagSet

func (Builder) PluginName

func (a Builder) PluginName() string

func (*Builder) PrintFlags

func (a *Builder) PrintFlags(w io.Writer) error

func (*Builder) ScopedPlugins

func (bc *Builder) ScopedPlugins() []plugins.Plugin

func (Builder) String

func (a Builder) String() string

func (*Builder) WithPlugins

func (bc *Builder) WithPlugins(f plugins.Feeder)

type Scripter

type Scripter = ifaces.Scripter

type Stdouter

type Stdouter = plugio.Outer

type Tooler

type Tooler = ifaces.Tooler

Tooler returns the name of the asset tool to use. npm, yarnpkg, etc...

Jump to

Keyboard shortcuts

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