Documentation ¶
Index ¶
- type Analyzer
- func (builder *Analyzer) Analyze(m module.Module, allowUnresolved bool) ([]module.Dependency, error)
- func (builder *Analyzer) Build(m module.Module, force bool) error
- func (builder *Analyzer) DiscoverModules(dir string) ([]module.Config, error)
- func (builder *Analyzer) Initialize() error
- func (builder *Analyzer) IsBuilt(m module.Module, allowUnresolved bool) (bool, error)
- func (builder *Analyzer) IsModule(target string) (bool, error)
- type ConfigFile
- type Options
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 ¶
Build runs `bower install --production` and cleans with `rm -rf bower_components`
func (*Analyzer) DiscoverModules ¶
DiscoverModules finds any bower.json modules not in node_modules or bower_components folders
func (*Analyzer) Initialize ¶
Initialize collects metadata on Node and Bower binaries
type ConfigFile ¶
Click to show internal directories.
Click to hide internal directories.