Skip to content

Frapwings/component-jscoverage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

component-jscoverage

Build Status Coverage Status NPM version Dependency Status

jscoverage plugin for component-builder

Installing

$ npm install component-jscoverage

Usage

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

Testing

$ npm install
$ make test

License

MIT license.

See the LICENSE.

Bitdeli Badge

About

jscoverage plugin for component-builder

Resources

License

Stars

Watchers

Forks

Packages

No packages published