dev

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 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 Command

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

dev is the dev command.

func (Command) HelpText

func (d Command) HelpText() string

HelpText resturns 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 []plugins.Plugin)

func (*Command) Run

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

Run calls NPM or yarn to start webpack watching the assets Also starts refresh listening for the changes in Go files.

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