bower

package
v0.7.0-alpha.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	NodeCmd     string
	NodeVersion string

	BowerCmd     string
	BowerVersion string

	Options Options
}

func (*Analyzer) Analyze

func (builder *Analyzer) Analyze(m module.Module, allowUnresolved bool) ([]module.Dependency, error)

Analyze reads the output of `bower ls --json` TODO: fall back to old method of reading `bower_components/*/.bower.json`s?

func (*Analyzer) Build

func (builder *Analyzer) Build(m module.Module, force bool) error

Build runs `bower install --production` and cleans with `rm -rf bower_components`

func (*Analyzer) DiscoverModules

func (builder *Analyzer) DiscoverModules(dir string) ([]module.Config, error)

DiscoverModules finds any bower.json modules not in node_modules or bower_components folders

func (*Analyzer) Initialize

func (builder *Analyzer) Initialize() error

Initialize collects metadata on Node and Bower binaries

func (*Analyzer) IsBuilt

func (builder *Analyzer) IsBuilt(m module.Module, allowUnresolved bool) (bool, error)

IsBuilt checks for the existence of `$PROJECT/bower_components`

func (*Analyzer) IsModule

func (builder *Analyzer) IsModule(target string) (bool, error)

IsModule is not implemented

type ConfigFile

type ConfigFile struct {
	Cwd       string `json:"cwd"`
	Directory string `json:"directory"`
	Registry  string `json:"registry"`
}

type Options

type Options struct {
	ComponentsDir string `mapstructure:"components-dir"`
}

Jump to

Keyboard shortcuts

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