npm

package
v0.0.0-...-1428ed7 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersions

func GetVersions(ctx context.Context, pkg string, mux rebuild.RegistryMux) (versions []string, err error)

GetVersions returns the versions to be processed, most recent to least recent.

func RebuildMany

func RebuildMany(ctx context.Context, inputs []rebuild.Input, mux rebuild.RegistryMux) ([]rebuild.Verdict, error)

RebuildMany executes rebuilds for each provided rebuild.Input returning their rebuild.Verdicts.

func RebuildRemote

func RebuildRemote(ctx context.Context, input rebuild.Input, id string, opts rebuild.RemoteOptions) error

RebuildRemote executes the given target strategy on a remote builder.

Types

type NPMCustomBuild

type NPMCustomBuild struct {
	rebuild.Location
	NPMVersion      string    `json:"npm_version"`
	NodeVersion     string    `json:"node_version"`
	VersionOverride string    `json:"version_override"`
	Command         string    `json:"command"`
	RegistryTime    time.Time `json:"registry_time"`
}

NPMCustomBuild implements a user-specified build script.

func (*NPMCustomBuild) GenerateFor

GenerateFor generates the instructions for a NPMCustomBuild.

type NPMPackBuild

type NPMPackBuild struct {
	rebuild.Location
	// NPMVersion is the version of the NPM CLI to use for the build.
	NPMVersion string `json:"npm_version"`
	// VersionOverride provides an alternative version value to apply to the package.json file.
	VersionOverride string `json:"version_override"`
}

func (*NPMPackBuild) GenerateFor

GenerateFor generates the instructions for a NPMPackBuild.

type Rebuilder

type Rebuilder struct{}

func (Rebuilder) CloneRepo

func (Rebuilder) CloneRepo(ctx context.Context, t rebuild.Target, repoURI string, fs billy.Filesystem, s storage.Storer) (r rebuild.RepoConfig, err error)

func (Rebuilder) Compare

func (Rebuilder) Compare(ctx context.Context, t rebuild.Target, rb, up rebuild.Asset, assets rebuild.AssetStore, _ rebuild.Instructions) (msg error, err error)

func (Rebuilder) InferRepo

func (Rebuilder) InferStrategy

func (Rebuilder) Rebuild

Jump to

Keyboard shortcuts

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