bower

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 7 Imported by: 0

README

Bower resolution logic

The way resolution of bower lock files works is as follows:

  1. Run bower install --save --save-dev --save-exact --allow-root in order to install all dependencies
  2. Run bower list to get installed dependencies tree

The result of bower list command is then being written into the lock file.

Documentation

Index

Constants

View Source
const Name = "bower"

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdFactory

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

func (CmdFactory) MakeInstallCmd

func (cmdf CmdFactory) MakeInstallCmd(command string, file string) (*exec.Cmd, error)

func (CmdFactory) MakeListCmd

func (cmdf CmdFactory) MakeListCmd(command string, file string) (*exec.Cmd, error)

type ExecPath

type ExecPath struct {
}

func (ExecPath) LookPath

func (ExecPath) LookPath(file string) (string, error)

type ICmdFactory

type ICmdFactory interface {
	MakeInstallCmd(command string, file string) (*exec.Cmd, error)
	MakeListCmd(command string, file string) (*exec.Cmd, error)
}

type IExecPath

type IExecPath interface {
	LookPath(file string) (string, error)
}

type Job

type Job struct {
	job.BaseJob
	// contains filtered or unexported fields
}

func NewJob

func NewJob(
	file string,
	cmdFactory ICmdFactory,
	fileWriter writer.IFileWriter,
) *Job

func (*Job) Run

func (j *Job) Run()

type Pm

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

func NewPm

func NewPm() Pm

func (Pm) Manifests

func (Pm) Manifests() []string

func (Pm) Name

func (pm Pm) Name() string

type Strategy

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

func NewStrategy

func NewStrategy(files []string) Strategy

func (Strategy) Invoke

func (s Strategy) Invoke() ([]job.IJob, error)

Jump to

Keyboard shortcuts

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