brp-depend
v1.0.0
Published
Adds dependency management to brp projects
Downloads
3
Maintainers
Readme
brp-depend
Adds dependencies to your brp project
Install
Make sure you have the latest version of Node installed first!
npm install brp-depend --saveThen 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)
