plugins

package
v0.0.0-...-dc8f43e Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoPlugin

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

GoPlugin implements building Go projects in memory

func NewGoPlugin

func NewGoPlugin() *GoPlugin

NewGoPlugin creates a new Go build plugin

func (*GoPlugin) Build

Build executes the Go build process

func (*GoPlugin) DetectProject

func (p *GoPlugin) DetectProject(vfs build.VirtualFileSystem) (bool, *build.ProjectMetadata, error)

DetectProject checks if this is a Go project

func (*GoPlugin) GetDependencies

func (p *GoPlugin) GetDependencies(config build.BuildConfig, vfs build.VirtualFileSystem) ([]build.Dependency, error)

GetDependencies resolves Go module dependencies

func (*GoPlugin) Name

func (p *GoPlugin) Name() string

Name returns the plugin name

func (*GoPlugin) SupportedExtensions

func (p *GoPlugin) SupportedExtensions() []string

SupportedExtensions returns Go file extensions

func (*GoPlugin) SupportsMemoryBuild

func (p *GoPlugin) SupportsMemoryBuild() bool

SupportsMemoryBuild returns true as Go can build from memory via temp bridge

func (*GoPlugin) ValidateBuild

func (p *GoPlugin) ValidateBuild(config build.BuildConfig, vfs build.VirtualFileSystem) error

ValidateBuild checks if build configuration is valid

type JavaScriptPlugin

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

JavaScriptPlugin implements building JavaScript/Node.js projects in memory

func NewJavaScriptPlugin

func NewJavaScriptPlugin() *JavaScriptPlugin

NewJavaScriptPlugin creates a new JavaScript build plugin

func (*JavaScriptPlugin) Build

Build executes the JavaScript build process

func (*JavaScriptPlugin) DetectProject

DetectProject checks if this is a JavaScript project

func (*JavaScriptPlugin) GetDependencies

func (p *JavaScriptPlugin) GetDependencies(config build.BuildConfig, vfs build.VirtualFileSystem) ([]build.Dependency, error)

GetDependencies returns JavaScript dependencies

func (*JavaScriptPlugin) Name

func (p *JavaScriptPlugin) Name() string

Name returns the plugin name

func (*JavaScriptPlugin) SupportedExtensions

func (p *JavaScriptPlugin) SupportedExtensions() []string

SupportedExtensions returns JavaScript file extensions

func (*JavaScriptPlugin) SupportsMemoryBuild

func (p *JavaScriptPlugin) SupportsMemoryBuild() bool

SupportsMemoryBuild returns true

func (*JavaScriptPlugin) ValidateBuild

func (p *JavaScriptPlugin) ValidateBuild(config build.BuildConfig, vfs build.VirtualFileSystem) error

ValidateBuild validates JavaScript build configuration

type PackageJSON

type PackageJSON struct {
	Name            string            `json:"name"`
	Version         string            `json:"version"`
	Main            string            `json:"main,omitempty"`
	Scripts         map[string]string `json:"scripts,omitempty"`
	Dependencies    map[string]string `json:"dependencies,omitempty"`
	DevDependencies map[string]string `json:"devDependencies,omitempty"`
	Bin             interface{}       `json:"bin,omitempty"`
	Type            string            `json:"type,omitempty"`
	Module          string            `json:"module,omitempty"`
	Browser         interface{}       `json:"browser,omitempty"`
	Exports         interface{}       `json:"exports,omitempty"`
}

PackageJSON represents package.json structure

Jump to

Keyboard shortcuts

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