Preprocessor to build JavaScript files through borschik builder on the fly.
JavaScript CoffeeScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test-app
test
.editorconfig
.gitignore
.jshintrc
.travis.yml
CONTRIBUTING.md
Gruntfile.coffee
LICENSE
README.md
index.js
package.json

README.md

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.