bower

package
v0.7.24 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: MPL-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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