0.0.5 • Published 8 years ago
karma-bower-inject v0.0.5
karma-bower-inject
Small module that return an array of path to required JS files in bower components
Installation
npm install --save-dev karma-bower-inject
Usage
Initialization (in karma config file)
var bowerInject = require( 'karma-bower-inject' );
bower = bowerInject.get( depArr ); // return an array of path to bower JS files
depArr - is an optional array of dependencies names that need to be injected first. Module sort bower components by field dependencies and devDeendencies in bower.json, but some of modules missed that fields. Then concat your bower dependencies with your gustom JS files
files: bower.concat([
'src/config.spec.js',
'src/**/!(*.spec).js'
])