Skip to content

Commit

Permalink
upgrade to browserify-istanbul
Browse files Browse the repository at this point in the history
fixes #59
  • Loading branch information
peter-mouland committed Mar 5, 2015
1 parent 139b132 commit f651137
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion component-structure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"start:quick": "component serve quick"
},
"devDependencies": {
"istanbulify": "git://github.com/peter-mouland/istanbulify",
"browserify-istanbul": "^0.2.0",
"component-helper" : "^1.1.0"
},
"author": "{{ git.author }}"
Expand Down
12 changes: 6 additions & 6 deletions component-structure/test/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module.exports = function(config) {
var pkg = require('../package.json');
var karmaConfig = {
basePath: '..',
browsers: ['PhantomJS'],
Expand Down Expand Up @@ -32,18 +31,19 @@ module.exports = function(config) {
exclude: [
'**/*.png',
'**/*.min.js',
'**/*.requirejs.js',
'bower_components/**/*',
'node_modules/**/*'
'**/*.requirejs.js'
]
};
var pkg = require('../package.json');
var istanbul = require('browserify-istanbul');
var transform = istanbul({ ignore: ['**/bower_components/**'] });
karmaConfig.browser = pkg.browser || {};
karmaConfig["browserify-shim"] = pkg["browserify-shim"] || {};
karmaConfig.browserify = pkg.browserify || {};
if (karmaConfig.browserify.transform) {
karmaConfig.browserify.transform.push('istanbulify'); //browserify-istanbul
karmaConfig.browserify.transform.push(transform);
} else {
karmaConfig.browserify.transform = [ 'istanbulify' ]; //browserify-istanbul
karmaConfig.browserify.transform = transform;
}
return config.set(karmaConfig);
};

0 comments on commit f651137

Please sign in to comment.