karma-borschik-preprocessor

0.1.6 • Public • Published

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.

Package Sidebar

Install

npm i karma-borschik-preprocessor

Weekly Downloads

3

Version

0.1.6

License

MIT

Last publish

Collaborators

  • maksimr