bower

package
v0.7.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bower

type Bower struct {
	Cmd    string
	Config Config
}

func (*Bower) Clean

func (b *Bower) Clean(dir string) error

func (*Bower) Install

func (b *Bower) Install(dir string, production bool) error

func (*Bower) List

func (b *Bower) List(dir string) ([]Package, error)

type Config

type Config struct {
	CWD       string `json:"cwd"`
	Directory string `json:"directory"`
}

func ReadConfig

func ReadConfig(dir string) (Config, error)

func ReadConfigFile

func ReadConfigFile(filename string) (Config, error)

type Import

type Import struct {
	Name    string
	Version string
}

func FromManifest

func FromManifest(filename string) ([]Import, error)

type Package

type Package struct {
	PkgMeta      PackageMetadata
	Dependencies map[string]Package
}

func FromComponents

func FromComponents(dir string) ([]Package, error)

type PackageMetadata

type PackageMetadata struct {
	Name    string
	Version string

	TargetName    string `json:"_originalSource"`
	TargetVersion string `json:"_target"`
}

Jump to

Keyboard shortcuts

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