New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ibrik-instrumenter-loader

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ibrik-instrumenter-loader

Ibrik instrumenter loader for webpack

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
54
increased by14.89%
Maintainers
1
Weekly downloads
 
Created
Source

Ibrik instrumenter loader for webpack

Instrument JS files with Ibrik for subsequent code coverage reporting.

Downloads Code Climate David Dependencies

Install

$ npm install --save-dev ibrik-instrumenter-loader

Usage

Useful to get work together karma-webpack and karma-coverage. For example:

  1. karma-webpack config
  2. karma-coverage config
  3. replace karma-coverage's code instrumenting with ibrik-instrumenter-loader's one:
config.set({
    ...
    files: [
      // 'src/**/*.js', << you don't need this anymore
      'test/**/*.js'
    ],
    ...
    preprocessors: {
        // 'src/**/*.js': ['coverage'], << and this too
        'test/**/*.js': [ 'webpack' ]
    },
    reporters: [ 'progress', 'coverage' ],
    coverageReporter: {
        type: 'html',
        dir: 'coverage/'
    },
    ...
    webpack: {
        ...
        module: {
            preLoaders: [ // << add subject as webpack's preloader
                {
                  test: /\.coffee$/,
                  // exclude this dirs from coverage
                  exclude: /(test|node_modules|bower_components)\//,
                  loader: 'ibrik-instrumenter-loader'
                },
            ],
            // other webpack loaders excluding coffeescript ...
            loaders: [ ... ],
        },
        ...
    }
});

Documentation: Using loaders.

License

WTFPL

Keywords

FAQs

Package last updated on 08 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc