regexper-static/karma.conf.js
Jeff Avallone e910c757e5 Converting config into a module instead of just JSON
Allows the browserify config to be further unified. Also added ability
to build to different paths than just ./build
2014-11-30 14:39:56 -05:00

23 lines
548 B
JavaScript

var _ = require('lodash'),
config = require('./config');
module.exports = function(karma) {
var globs = _.flatten([config.globs.js, config.globs.spec]);
karma.set({
frameworks: ['browserify', 'jasmine'],
files: globs,
preprocessors: _(globs)
.zipObject()
.mapValues(_.constant(['browserify']))
.valueOf(),
reporters: ['progress', 'notify'],
colors: true,
logLevel: karma.LOG_INFO,
browsers: ['PhantomJS'],
autoWatch: true,
singleRun: false,
browserify: config.browserify
});
};