managed-bower
Mange bower dependencies with html attributes.
Usage
Gulp
This is not fully compliment gulp plugin, but it follows most of the guidelines.
The files are pipe without modification, so you can just drop it to the pipeline at any stage.
var managedBower = ; gulp;
HTML
Just add managed-bower
attribute to the <script>
element to make the magic happen.
You also need to provide the bower package name under name
attribute.
Example:
Javascript
Require the module, invoke it with config
object, and then stream you files to it.
The config
object is passed on as is to bower install command, the most useful option is { directory : 'install/packages/here' }
but feel free to consult bower docs.
Example:
var managedBower = ;var File = ; var example = ced: 'test/' base: 'test/examples/' path: 'test/examples/multi.html' contents: fs;//pass on configuration object to bowervar stream = ;stream ;stream;