retro

package
v0.0.0-...-1a50537 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NODE_ENV      = ""
	RETRO_CMD     = ""
	RETRO_WWW_DIR = ""
	RETRO_SRC_DIR = ""
	RETRO_OUT_DIR = ""
)

Functions

func Run

func Run()

Types

type App

type App struct {
	// Use an empty interface because Go doesn't support type unions
	Command interface{}
}

func (*App) Build

func (a *App) Build(options BuildOptions) error

func (*App) Dev

func (a *App) Dev(options DevOptions) error

func (*App) Serve

func (a *App) Serve(options ServeOptions) error

type BuildOptions

type BuildOptions struct {
	WarmUpFlag bool
}

type BundleInfo

type BundleInfo struct {
	Metafile map[string]interface{}
	Errors   []api.Message
	Warnings []api.Message
}

func (BundleInfo) HTML

func (b BundleInfo) HTML() string

func (BundleInfo) IsDirty

func (b BundleInfo) IsDirty() bool

func (BundleInfo) String

func (b BundleInfo) String() string

type CommandKind

type CommandKind string
var (
	KindDevCommand   CommandKind = "dev"
	KindBuildCommand CommandKind = "build"
	KindServeCommand CommandKind = "serve"
)

type DevOptions

type DevOptions struct {
	WarmUpFlag bool
}

type EntryPointError

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

func (EntryPointError) Error

func (e EntryPointError) Error() string

type Message

type Message struct {
	VendorInfo BundleInfo
	ClientInfo BundleInfo
}

func (Message) HTML

func (m Message) HTML() string

func (Message) IsDirty

func (m Message) IsDirty() bool

func (Message) String

func (m Message) String() string

type ServeOptions

type ServeOptions struct {
	WarmUpFlag bool
	Dev        chan TimedMessage
}

type TimedMessage

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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