karma-borschik-preprocessor

A Karma plugin. Build JavaScript files trhough borschik on the fly.

npm install karma-borschik-preprocessor
5 downloads in the last day
101 downloads in the last week
163 downloads in the last month

karma-borschik-preprocessor

Build Status Build Status

Preprocessor to build JavaScript files through borschik on the fly.

Installation

The easiest way is to keep karma-borschik-preprocessor as a devDependency in your package.json.

{
  "devDependencies": {
    "karma": "~0.10",
    "karma-borschik-preprocessor": "~0.1"
  }
}

You can simple do it by:

npm install karma-borschik-preprocessor --save-dev

Configuration

Following code shows the default configuration...

// karma.conf.js
module.exports = function(config) {
  config.set({
    preprocessors: {
      '**/*.js': ['borschik']
    },

    borschikPreprocessor: {
      // options passed to the borschik builder
      options: {
        'comments': true,
        'minimize': true
      }
    }
  });
};

For more information on Karma see the homepage.

npm loves you