1.0.0 • Published 7 years ago
karma-yui-preprocessor v1.0.0
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
- 1.0.1 Fixing dependencies issue
- 1.0.0 Initial usable release.