karma-wrap-preprocessor
0.1.0 • Public • Published karma-wrap-preprocessor
Wrap files with a lodash template.
Installation
npm install --save-dev karma-wrap-preprocessor
Configuration
module.exports = function(config) {
config.set({
files: [
'app/**/*.js',
'test/**/*.js'
],
preprocessors: {
'app/**/*.js': ['wrap']
},
wrapPreprocessor: {
template: '(function () { <%= contents %> })()',
file: 'path/to/tpl.txt',
variable: 'file',
options: {}
}
});
};
License
MIT
Package Sidebar
Install
npm i karma-wrap-preprocessor
Weekly Downloads