Skip to content

Commit

Permalink
rename gruntacular to grunt-karma
Browse files Browse the repository at this point in the history
  • Loading branch information
geddski committed Mar 19, 2013
1 parent dc13a81 commit 1fed005
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
7 changes: 7 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//TODO make the configFile optional
files = [
MOCHA,
MOCHA_ADAPTER,
'node_modules/expect.js/expect.js',
'test/**/*.js'
];
12 changes: 6 additions & 6 deletions tasks/gruntacular.js → tasks/grunt-karma.js
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand Down
7 changes: 0 additions & 7 deletions testacular.conf.js

This file was deleted.

0 comments on commit 1fed005

Please sign in to comment.