bundle

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const PortalJson = "portal.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	Name        string `json:"name,omitempty"`
	Title       string `json:"title,omitempty"`
	Description string `json:"description,omitempty"`
	Package     string `json:"package,omitempty"`
	Version     string `json:"version,omitempty"`
	Icon        string `json:"icon,omitempty"`
}

func Base

func Base(src string) Manifest

func ReadManifestFs

func ReadManifestFs(src fs.FS) (p Manifest, err error)

func (*Manifest) LoadFs

func (m *Manifest) LoadFs(src fs.FS, name string) (err error)

func (*Manifest) LoadPath

func (m *Manifest) LoadPath(src string, name string) (err error)

type PackageJson

type PackageJson struct {
	Module  string `json:"module,omitempty"`
	Scripts struct {
		Build string `json:"build"`
	} `json:"scripts,omitempty"`
}

func LoadPackageJson

func LoadPackageJson(files fs.FS) (pkgJson PackageJson, err error)

func (PackageJson) HasBuildScript

func (p PackageJson) HasBuildScript() bool

func (PackageJson) IsPortalLib

func (p PackageJson) IsPortalLib() bool

Jump to

Keyboard shortcuts

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