Browse files

chore: rename to Karma

  • Loading branch information...
1 parent 4087ac7 commit 48cad2e39affd2deb9d3e14933c1bf15beebf6c6 @vojtajina vojtajina committed Mar 19, 2013
Showing with 27 additions and 27 deletions.
  1. +1 −1 .npmignore
  2. +2 −2 CONTRIBUTING.md
  3. +5 −5 Gruntfile.coffee
  4. +3 −3 README.md
  5. +3 −3 testacular.conf.js → karma.conf.js
  6. +8 −8 package.json
  7. +1 −1 src/adapter.js
  8. +4 −4 src/adapter.wrapper
View
2 .npmignore
@@ -4,4 +4,4 @@ test
tasks
Gruntfile.coffee
-testacular.conf.js
+karma.conf.js
View
4 CONTRIBUTING.md
@@ -1,3 +1,3 @@
-Please see the [Contributing to Testacular] guide for information on contributing to this project.
+Please see the [Contributing to Karma] guide for information on contributing to this project.
-[Contributing to Testacular]: https://github.com/testacular/testacular/blob/master/CONTRIBUTING.md
+[Contributing to Karma]: https://github.com/karma-runner/karma/blob/master/CONTRIBUTING.md
View
10 Gruntfile.coffee
@@ -37,20 +37,20 @@ module.exports = (grunt) ->
boss: true
globals: {}
- testacular:
+ karma:
adapter:
- configFile: 'testacular.conf.js'
+ configFile: 'karma.conf.js'
autoWatch: false
singleRun: true
reporters: ['dots']
grunt.loadTasks 'tasks'
- # grunt.loadTasks '../testacular/tasks'
+ # grunt.loadTasks '../karma/tasks'
grunt.loadNpmTasks 'grunt-contrib-jshint'
- grunt.loadNpmTasks 'gruntacular'
+ grunt.loadNpmTasks 'grunt-karma'
grunt.registerTask 'default', ['build', 'jshint', 'test']
- grunt.registerTask 'test', ['testacular']
+ grunt.registerTask 'test', ['karma']
# TODO(vojta): release task
# grunt.registerTask 'release', 'Build, bump and publish to NPM.', (type) ->
View
6 README.md
@@ -1,8 +1,8 @@
-# testacular-requirejs
+# karma-requirejs
> Adapter for the RequireJS framework.
-For more information on Testacular see the [homepage].
+For more information on Karma see the [homepage].
-[homepage]: http://testacular.github.com
+[homepage]: http://karma-runner.github.com
View
6 testacular.conf.js → karma.conf.js
@@ -8,9 +8,9 @@ files = [
browsers = process.env.TRAVIS ? ['Firefox'] : ['Chrome'];
plugins = [
- 'testacular-jasmine',
- 'testacular-chrome-launcher',
- 'testacular-firefox-launcher'
+ 'karma-jasmine',
+ 'karma-chrome-launcher',
+ 'karma-firefox-launcher'
];
autoWatch = true;
View
16 package.json
@@ -1,17 +1,17 @@
{
- "name": "testacular-requirejs",
+ "name": "karma-requirejs",
"version": "0.0.1",
- "description": "A Testacular plugin. Adapter for RequireJS framework.",
+ "description": "A Karma plugin. Adapter for RequireJS framework.",
"main": "lib/index.js",
"scripts": {
"test": "grunt test"
},
"repository": {
"type": "git",
- "url": "git://github.com/testacular/testacular-requirejs.git"
+ "url": "git://github.com/karma-runner/karma-requirejs.git"
},
"keywords": [
- "testacular-plugin",
+ "karma-plugin",
"adapter",
"requirejs"
],
@@ -21,12 +21,12 @@
"devDependencies": {
"grunt": "~0.4.0rc5",
"grunt-contrib-jshint": "~0.1.1rc5",
- "testacular": "*",
- "testacular-jasmine": "*",
- "gruntacular": "~0.1.0"
+ "karma": "*",
+ "karma-jasmine": "*",
+ "grunt-karma": "~0.3"
},
"peerDependencies": {
- "testacular": "~0.7"
+ "karma": "~0.9"
},
"license": "MIT"
}
View
2 src/adapter.js
@@ -1,5 +1,5 @@
// monkey patch requirejs, to use append timestamps to sources
-// to take advantage of testacular's heavy caching
+// to take advantage of karma's heavy caching
// it would work even without this hack, but with reloading all the files all the time
var normalizePath = function(path) {
View
8 src/adapter.wrapper
@@ -1,11 +1,11 @@
-(function(testacular, requirejs) {
+(function(karma, requirejs) {
%CONTENT%
// make it async
-testacular.loaded = function() {};
+karma.loaded = function() {};
// patch require.js
-requirejs.load = createPatchedLoad(testacular.files, requirejs.load);
+requirejs.load = createPatchedLoad(karma.files, requirejs.load);
-})(window.__testacular__, window.requirejs);
+})(window.__karma__, window.requirejs);

0 comments on commit 48cad2e

Please sign in to comment.