project

package
v0.0.0-...-3e59879 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPortalApps

func BuildPortalApps(root, dir string, dependencies ...NodeModule) (err error)

func Find

func Find[T target.Source](files fs.FS, dir string) (in <-chan T)

Find all portal targets in a given dir and stream through the returned channel. Possible types are: NodeModule, PortalNodeModule, PortalRawModule, Bundle,

func Path

func Path(src string) (base, sub string, err error)

Types

type Bundle

type Bundle struct {
	*Module
	// contains filtered or unexported fields
}

func (*Bundle) App

func (b *Bundle) App()

func (*Bundle) Manifest

func (b *Bundle) Manifest() bundle.Manifest

type Module

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

func NewModule

func NewModule(src string) *Module

func (*Module) Bundle

func (m *Module) Bundle() (b *Bundle, err error)

func (*Module) Files

func (m *Module) Files() fs.FS

func (*Module) IsBackend

func (m *Module) IsBackend() bool

func (*Module) IsFrontend

func (m *Module) IsFrontend() bool

func (*Module) NodeModule

func (m *Module) NodeModule() (module *NodeModule, err error)

func (*Module) Parent

func (m *Module) Parent() *Module

func (*Module) Path

func (m *Module) Path() string

func (*Module) PortalNodeModule

func (m *Module) PortalNodeModule() (module *PortalNodeModule, err error)

func (*Module) PortalRawModule

func (m *Module) PortalRawModule() (module *PortalRawModule, err error)

func (Module) Type

func (m Module) Type() target.Type

type NodeModule

type NodeModule struct {
	*Module
	// contains filtered or unexported fields
}

func (*NodeModule) CanNpmRunBuild

func (m *NodeModule) CanNpmRunBuild() bool

func (*NodeModule) InjectDependencies

func (m *NodeModule) InjectDependencies(modules []NodeModule) (err error)

func (*NodeModule) InjectDependency

func (m *NodeModule) InjectDependency(module NodeModule) (err error)

func (*NodeModule) IsPortalLib

func (m *NodeModule) IsPortalLib() bool

func (*NodeModule) NpmInstall

func (m *NodeModule) NpmInstall() (err error)

func (*NodeModule) NpmRunBuild

func (m *NodeModule) NpmRunBuild() (err error)

func (*NodeModule) PkgJson

func (m *NodeModule) PkgJson() bundle.PackageJson

func (*NodeModule) PortalNodeModule

func (m *NodeModule) PortalNodeModule() (module *PortalNodeModule, err error)

type PortalNodeModule

type PortalNodeModule struct {
	*NodeModule
	// contains filtered or unexported fields
}

func (*PortalNodeModule) Build

func (m *PortalNodeModule) Build() (err error)

func (*PortalNodeModule) CopyIcon

func (m *PortalNodeModule) CopyIcon() (err error)

func (*PortalNodeModule) CopyManifest

func (m *PortalNodeModule) CopyManifest() (err error)

func (*PortalNodeModule) Manifest

func (m *PortalNodeModule) Manifest() bundle.Manifest

func (*PortalNodeModule) Prepare

func (m *PortalNodeModule) Prepare(dependencies ...NodeModule) (err error)

func (*PortalNodeModule) PrepareBuild

func (m *PortalNodeModule) PrepareBuild(dependencies ...NodeModule) (err error)

func (PortalNodeModule) Type

func (m PortalNodeModule) Type() target.Type

type PortalRawModule

type PortalRawModule struct {
	*Module
	// contains filtered or unexported fields
}

func (*PortalRawModule) App

func (m *PortalRawModule) App()

func (*PortalRawModule) Manifest

func (m *PortalRawModule) Manifest() bundle.Manifest

func (PortalRawModule) Type

func (m PortalRawModule) Type() target.Type

Jump to

Keyboard shortcuts

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