0.0.3 • Published 11 months ago
karma-include-jsraw v0.0.3
Karma Include RAW JS file
Karma Include RAW JS file preprocessor plugin.
Installation
Add karma-include-jsraw
to devDependencies of package.json
npm install karma-include-jsraw --save-dev
Add as a plugin to karma config.
{
module.exports =
//...
basePath: 'basePath', //this path is used for locate included scripts
frameworks: ['include-jsraw', 'jasmine'...],
//...
plugins: [
require('include-jsraw')
//... other plugins
]
}
Usage
Add
/// <include path="path_to_file.js" />
Path is relative to karma basePath.