dev

package
v0.13.5 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeforeDeveloper

type BeforeDeveloper interface {
	Name() string
	BeforeDevelop(context.Context, string) error
}

BeforeDeveloper is an interface that will allow to identify those plugins that need to run before the dev commands is run.

type Command

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

Command is the dev command, it runs the dev plugins, each one on a different go routine. the detail to what happen on each of these plugins is up to each of the Developer plugins.

func (Command) Alias

func (c Command) Alias() string

func (Command) HelpText

func (d Command) HelpText() string

HelpText returns the help Text of build function

func (Command) Name

func (d Command) Name() string

func (Command) ParentName

func (d Command) ParentName() string

func (*Command) Receive

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

Receive Developer and BeforeDeveloper plugins and store these in the Command to be used when the command is invoked.

func (*Command) Run

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

Run calls each of the beforedeveloper plugins and then executes Developer plugins in parallel.

type Developer

type Developer interface {
	Name() string
	Develop(context.Context, string) error
}

Developer is a tool that will be invoked for development purposes. Things like webpack with --watch and refresh.

Jump to

Keyboard shortcuts

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