runner

package
v0.0.0-...-d70c892 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBackend

func IsBackend(dir fs.FS) bool

func IsFrontend

func IsFrontend(dir fs.FS) bool

func ResolveSrc

func ResolveSrc(dir string, name string) (f string, err error)

Types

type GetTargets

type GetTargets func(string) ([]Target, error)

type Runner

type Runner struct {
	Frontends []Target
	Backends  []Target
}

func New

func New(dir string, resolve GetTargets) (out *Runner, err error)

type Target

type Target struct {
	Files fs.FS
	Path  string
}

func BundleTargets

func BundleTargets(src string) (targets []Target, err error)

func DevTargets

func DevTargets(src string) (targets []Target, err error)

func ProdTargets

func ProdTargets(src string) (targets []Target, err error)

func RawTargets

func RawTargets(src string) (targets []Target, err error)

func RawTargetsFS

func RawTargetsFS(files fs.FS) (targets []Target, err error)

Jump to

Keyboard shortcuts

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