A Karma plugin. Compile ember script on the fly.
Preprocessor to compile EmberScript on the fly.
This plugin ships with Karma by default, so you don't need to install it, it should just work ;-)
The easiest way is to keep
karma-ember-script-preprocessor as a devDependency in your
You can simple do it by:
npm install karma-ember-script-preprocessor --save-dev
Following code shows the default configuration...
// karma.conf.jsconfigsetpreprocessors:'**/*.em': 'ember-script'emberScriptPreprocessor:// options passed to the ember script compileroptions:bare: truesourceMap: false// transforming the filenamesreturn pathreplace/\.ember/ '.js';;;
If you set the
sourceMap coffee compiler option to
true then the generated source map will be inlined as a data-uri.
For more information on Karma see the homepage.