1.0.0 • Published 8 years ago

brp-depend v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

brp-depend

Adds dependencies to your brp project

circle-ci dependencies dev-dependencies code-climate js-standard-style


Install

Make sure you have the latest version of Node installed first!

npm install brp-depend --save

Then you can add brp-depend to your build pipeline.

const Dependencies = require('brp-depend')
...
let depend = new Dependencies()
depend.dependOn('faithful', 'http://faithful32x32.com/dl/faithful32pack.zip')
brp.use(depend.plugin)

Documentation

constructor(opts)

OptionDescriptionDefault
destthe destination folder for downloaded dependencies'src'
taskthe prefix for the tasks generated by brp-depend'install'
modewhere to put the file prefix for each file, can be dir-before, dir-after, or file'dir-after'
dependenciesequivalent to calling dependOn(name, url){}

Dependencies.dependOn(name, url)

Creates a dependency that is installed when running install or install-<name>.

Dependencies.plugin

Pass this to brp.use(plugin)