karma-renamer-preprocessor

0.0.1 • Public • Published

karma-renamer-preprocessor

A Karma plugin. Rename served files on the fly.

Installation

npm install karma-renamer-preprocessor --save-dev

Configuration

Simple configuration

You just need to declare what files should be renamed

// karma.conf.js
module.exports = function(config) {
  config.set({
    preprocessors: {
      '**/*.js': ['renamer']
    },
    renamerPreprocessor: {
      // transforming the filenames
      transformPath: function(path) {
        return path.replace(/\.js$/, '.sufix.js');
      }
    }
  });
};

For more information on Karma see the homepage.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.1132latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.1132

Package Sidebar

Install

npm i karma-renamer-preprocessor

Weekly Downloads

132

Version

0.0.1

License

MIT

Last publish

Collaborators

  • gjurgens