karma-regenerator-preprocessor
v0.1.0
Published
A Karma plugin. Compile regenerator on the fly.
Downloads
4
Maintainers
Readme
karma-regenerator-preprocessor
Preprocessor to compile regenerator code
Installation
The easiest way is to keep karma-regenerator-preprocessor
as a devDependency in your package.json
.
{
"devDependencies": {
"karma": "~0.10",
"karma-regenerator-preprocessor": "~0.1"
}
}
You can simple do it by:
npm install karma-regenerator-preprocessor --save-dev
Configuration
// karma.conf.js
module.exports = function(config) {
config.set({
preprocessors: {
'**/*.js': ['regenerator']
},
regeneratorPreprocessor: {
// options passed to regenerator
options: {
includeRuntime: true,
},
}
});
};
- For more information on Karma see the homepage.
- For more information on Regenerator see the regenerator homepage.
Authors
- Nate Murray [email protected]
- Forked from
karma-coffee-preprocessor