Carlos Vega 99435cfcf5 Angular (2+) support (#269)
This is the first attempt at adding support for Angular based, mostly, on the vue changes.

What works:
- Added angular sample code to the `examples` folder
- Rendering stories and creating stories out of existing angular components
- For the time being, this only supports one-page angular components

What's missing:
- Addons support
- Support for components that have a separate template

Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-18 18:16:45 +02:00

35 lines
946 B
JavaScript

/*eslint-disable*/
// Karma configuration file, see link for more information
// https://karma-runner.github.io/0.13/config/configuration-file.html
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular/cli'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular/cli/plugins/karma'),
],
client: {
clearContext: false, // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
reports: ['html', 'lcovonly'],
fixWebpackSourcePaths: true,
},
angularCli: {
environment: 'dev',
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
});
};