newapp

package
v2.0.0-alpha.15 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandRunner

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

CommandRunner can be implemented to intercept the running of a `webpack` command in any of the plugins in this package. This can be useful for testing, logging, wrapping IO, etc... It is expected that that plugins in this package will hand over control of the exec.Cmd to the first plugin that implements this interface.

type Generator

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

func (Generator) CmdName

func (Generator) CmdName() string

func (*Generator) Flags

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

func (*Generator) Newapp

func (g *Generator) Newapp(ctx context.Context, root string, name string, args []string) error

func (*Generator) NewappFlags

func (a *Generator) NewappFlags() []*pflag.Flag

func (Generator) PluginName

func (Generator) PluginName() string

func (*Generator) PrintFlags

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

func (*Generator) ScopedPlugins

func (g *Generator) ScopedPlugins() []plugins.Plugin

func (*Generator) WithPlugins

func (g *Generator) WithPlugins(f plugins.Feeder)

type Stderrer

type Stderrer = plugio.Errer

type Stdiner

type Stdiner = plugio.Inner

type Stdouter

type Stdouter = plugio.Outer

Jump to

Keyboard shortcuts

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