bower

package
v0.7.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2018 License: MPL-2.0 Imports: 5 Imported by: 2

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 New

func New(cmd, dir string) (*Bower, error)

func (*Bower) Clean

func (b *Bower) Clean() error

func (*Bower) Install

func (b *Bower) Install(production bool) error

func (*Bower) List

func (b *Bower) List() (Package, error)

type Config

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

func ReadConfig

func ReadConfig(dir string) (Config, error)

TODO: this is nowhere near complete -- there's all sorts of crazy cascading mechanisms that configure Bower.

func ReadConfigFile

func ReadConfigFile(filename string) (Config, error)

type Endpoint

type Endpoint struct {
	Name   string
	Source string
	Target string
}

type Manifest

type Manifest struct {
	Name            string
	DevDependencies map[string]string
	Dependencies    map[string]string
}

func ReadManifest

func ReadManifest(filename string) (Manifest, error)

type Package

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

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