From 1fed00504850508cc29d88c52e80eecaa02f002c Mon Sep 17 00:00:00 2001 From: Dave Geddes Date: Tue, 19 Mar 2013 13:17:26 -0600 Subject: [PATCH] rename gruntacular to grunt-karma --- karma.conf.js | 7 +++++++ tasks/{gruntacular.js => grunt-karma.js} | 12 ++++++------ testacular.conf.js | 7 ------- 3 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 karma.conf.js rename tasks/{gruntacular.js => grunt-karma.js} (71%) delete mode 100644 testacular.conf.js diff --git a/karma.conf.js b/karma.conf.js new file mode 100644 index 0000000..5ec5d2b --- /dev/null +++ b/karma.conf.js @@ -0,0 +1,7 @@ +//TODO make the configFile optional +files = [ + MOCHA, + MOCHA_ADAPTER, + 'node_modules/expect.js/expect.js', + 'test/**/*.js' +]; \ No newline at end of file diff --git a/tasks/gruntacular.js b/tasks/grunt-karma.js similarity index 71% rename from tasks/gruntacular.js rename to tasks/grunt-karma.js index b3adec5..455dd4d 100644 --- a/tasks/gruntacular.js +++ b/tasks/grunt-karma.js @@ -1,16 +1,16 @@ /* - * gruntacular - * https://github.com/OpenWebStack/gruntacular + * grunt-karma + * https://github.com/karma/grunt-karma * * Copyright (c) 2013 Dave Geddes * Licensed under the MIT license. */ -var runner = require('testacular').runner; -var server = require('testacular').server; +var runner = require('karma').runner; +var server = require('karma').server; module.exports = function(grunt) { - grunt.registerMultiTask('testacular', 'run testacular.', function() { + grunt.registerMultiTask('karma', 'run karma.', function() { var done = this.async(); var options = this.options(); var data = this.data; @@ -22,7 +22,7 @@ module.exports = function(grunt) { if (data.configFile) { data.configFile = grunt.template.process(data.configFile); } - //support `testacular run`, useful for grunt watch + //support `karma run`, useful for grunt watch if (this.flags.run){ runner.run(data, finished.bind(done)); return; diff --git a/testacular.conf.js b/testacular.conf.js deleted file mode 100644 index 4487037..0000000 --- a/testacular.conf.js +++ /dev/null @@ -1,7 +0,0 @@ -//TODO make the configFile optional, waiting on https://github.com/testacular/testacular/issues/358 -files = [ - MOCHA, - MOCHA_ADAPTER, - 'node_modules/expect.js/expect.js', - 'test/**/*.js' -]; \ No newline at end of file