npm.io
1.0.0 • Published 10 years ago

brp-depend

Licence
MIT
Version
1.0.0
Deps
2
Vulns
0
Weekly
0

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)
Option Description Default
dest the destination folder for downloaded dependencies 'src'
task the prefix for the tasks generated by brp-depend 'install'
mode where to put the file prefix for each file, can be dir-before, dir-after, or file 'dir-after'
dependencies equivalent 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)