karma-yui-preprocessor

1.0.0 • Public • Published

karma-yui-preprocessor

A quick and dirty karma preprocessor to wrap the yui boiler plate to the modules so they can be run through the tests.

Getting Started

Install the karma-yui-preprocessor and add it to the preprocessor list for your source files, it's as simple as that. This doesn't do anything with the lang files, they need to already exist, at least for now. It also doesn't do anything like build the different versions e.g minified/instrumented/remove log statements.

npm install --save-dev karma-yui-preprocessor
  // preprocess matching files before serving them to the browser
   // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
   preprocessors: {
       'src/main/javascript/**/js/*.js': ['yui', 'coverage'],
       //serve up the language files that are already built
       'target/classes/nd-staff-ui-core/**/lang/*.js': ['renamer']
   },

Release History

  • 0.1.0 Initial usable release.

Readme

Keywords

none

Package Sidebar

Install

npm i karma-yui-preprocessor

Weekly Downloads

2

Version

1.0.0

License

ISC

Last publish

Collaborators

  • jonesja