jscoverage plugin for component-builder
$ npm install component-jscoverage
To enable jscoverage of your scripts, run the following code.
var Builder = require('component-builder');
var jscover = require('component-jscoverage');
var fs = require('fs');
var builder = new Builder(__dirname);
builder.use(jscover);
builder.build(function (err, build) {
if (err) {
throw err;
}
fs.writeFileSync('build/build.js', build.require + build.js);
});
Or from the command line.
$ component build --use component-jscoverage
$ npm install
$ make test
See the LICENSE
.