Skip to content

Commit

Permalink
feat(runner): add --no-refresh to disable re-globbing
Browse files Browse the repository at this point in the history
This is for WebStorm, which takes care of watching on its own and updates fileList directly through the plugin.
  • Loading branch information
vojtajina committed Aug 1, 2013
1 parent 3c874ce commit b9c670a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ var processArgs = function(argv, options) {
if (helper.isString(options.changedFiles)) {
options.changedFiles = options.changedFiles.split(',');
}

if (helper.isString(options.refresh)) {
options.refresh = options.refresh === 'true';
}

options.configFile = path.resolve(argv._.shift() || 'karma.conf.js');

return options;
Expand Down Expand Up @@ -137,6 +142,7 @@ var describeRun = function() {
'Usage:\n' +
' $0 run [<options>]')
.describe('port', '<integer> Port where the server is listening.')
.describe('no-refresh', 'Do not re-glob all the patterns.')
.describe('help', 'Print usage.');
};

Expand Down
1 change: 1 addition & 0 deletions lib/completion.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var options = {
'--help': BOOLEAN
},
run: {
'--no-refresh': BOOLEAN,
'--port': CUSTOM,
'--help': BOOLEAN
}
Expand Down
3 changes: 2 additions & 1 deletion lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ exports.run = function(config, done) {
args: config.clientArgs,
removedFiles: config.removedFiles,
changedFiles: config.changedFiles,
addedFiles: config.addedFiles
addedFiles: config.addedFiles,
refresh: config.refresh
}));
};

0 comments on commit b9c670a

Please sign in to comment.