/karma-cson-preprocessor

A Karma plugin. Compile CSON files into JSON.

Primary LanguageCoffeeScriptMIT LicenseMIT

karma-cson-preprocessor

A Karma plugin. Compile CSON files into JSON.

npm install karma-cson-preprocessor --save-dev

Configuration

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

    files: [
      '**/*.js',
      '**/*.json',
    ]
  });
};

Origin

I used karma-slim-preprocessor as a model for this code.

Travis status