karma-cli-flags
Information
Package | karma-cli-flags |
Description | Karma preprocessor to inject cli flags |
Node Version | >= 0.10 |
Installation
Just add karma-cli-flags
as a devDependency in your package.json
.
Or issue the following command:
npm install karma-cli-flags --save-dev
Configuration
The code below shows a sample configuration of the preprocessor.
// karma.conf.jsmodule { config;};
Optionally, you can define the next parameters:
// karma.conf.jsmodule { config;};
export
Variable containing cli args to override until the end of file
export: 'ENV'
wrap
Wrap code into a function
wrap: false
namespace
Temp var to store exported variable value
namespace: '__cliFlags__'