e17565a708
Do so in order to use both js and css assets fetched with bower. Change-Id: Id4a8fa8dc3cd0915b33ead24421c14155897939e
73 lines
2.2 KiB
JavaScript
73 lines
2.2 KiB
JavaScript
/*
|
|
* Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
* not use this file except in compliance with the License. You may obtain
|
|
* a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
* License for the specific language governing permissions and limitations
|
|
* under the License.
|
|
*/
|
|
|
|
module.exports = function (config) {
|
|
'use strict';
|
|
|
|
config.set({
|
|
|
|
port: 9876,
|
|
|
|
basePath: '',
|
|
|
|
frameworks: ['jasmine-jquery','jasmine'],
|
|
|
|
browsers: [ 'PhantomJS', 'Chrome', 'Firefox'],
|
|
|
|
plugins: [
|
|
'karma-jasmine',
|
|
'karma-phantomjs-launcher',
|
|
'karma-chrome-launcher',
|
|
'karma-firefox-launcher',
|
|
'karma-ng-html2js-preprocessor',
|
|
'karma-jasmine-jquery'
|
|
],
|
|
|
|
files: [
|
|
'bower_components/jquery/dist/jquery.min.js',
|
|
'bower_components/angular/angular.js',
|
|
'bower_components/angular-mocks/angular-mocks.js',
|
|
'merlin/static/merlin/libs/underscore/underscore-min.js',
|
|
'merlin/static/merlin/libs/js-yaml/dist/js-yaml.min.js',
|
|
'merlin/static/merlin/js/custom-libs/barricade.js',
|
|
'merlin/static/merlin/js/custom-libs/ui-bootstrap-tpls-0.12.1.js',
|
|
// explicitly require first module definition file to avoid errors
|
|
'merlin/static/merlin/js/merlin.init.js',
|
|
'merlin/static/merlin/js/merlin.*.js',
|
|
'merlin/static/merlin/templates/**/*.html',
|
|
'merlin/test/js/*.spec.js',
|
|
// explicitly require first module definition file to avoid errors
|
|
'extensions/mistral/static/mistral/js/mistral.init.js',
|
|
'extensions/mistral/static/mistral/js/mistral.*.js',
|
|
'extensions/mistral/test/js/*.spec.js'
|
|
],
|
|
|
|
preprocessors: {
|
|
'merlin/static/merlin/templates/**/*.html': ['ng-html2js']
|
|
},
|
|
|
|
ngHtml2JsPreprocessor: {
|
|
stripPrefix: 'merlin',
|
|
moduleName: 'preprocessedTemplates'
|
|
},
|
|
|
|
exclude: [
|
|
],
|
|
|
|
singleRun: true
|
|
});
|
|
};
|