Skip to content

Commit

Permalink
feat(plugins): ignore some non-plugins package names
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Dec 3, 2013
1 parent a5945eb commit 0177603
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ var helper = require('./helper');
var log = require('./logger').create('plugin');


var IGNORED_PACKAGES = ['karma-cli', 'karma-runner.github.com'];

exports.resolve = function(plugins) {
var modules = [];

Expand All @@ -30,7 +32,7 @@ exports.resolve = function(plugins) {

log.debug('Loading %s from %s', plugin, pluginDirectory);
fs.readdirSync(pluginDirectory).filter(function(pluginName) {
return regexp.test(pluginName);
return IGNORED_PACKAGES.indexOf(pluginName) === -1 && regexp.test(pluginName);
}).forEach(function(pluginName) {
requirePlugin(pluginDirectory + '/' + pluginName);
});
Expand Down

0 comments on commit 0177603

Please sign in to comment.