karma-include-jsraw

0.0.3 • Public • Published

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.

Package Sidebar

Install

npm i karma-include-jsraw

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

3.15 kB

Total Files

4

Last publish

Collaborators

  • alba231