1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/appleskiller-typescripe-lib-starter

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
karma.conf.js 1.8 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
appleskiller Отправлено 25.07.2018 15:44 3b9c629
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
const webpack = require('webpack');
const path = require('path');
const HotModuleReplacementPlugin = require('webpack/lib/HotModuleReplacementPlugin');
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
plugins: [
require('karma-webpack'),
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter')
],
files: [
'test/index.js'
],
preprocessors: {
'test/index.js': ["webpack"]
},
webpack: {
mode: 'development',
devtool: 'inline-source-map',
resolve: {
// Add `.ts` and `.tsx` as a resolvable extension.
extensions: [".ts", ".tsx", ".js"]
},
module: {
rules: [{
test: /\.tsx?$/,
exclude: /node_modules/,
loader: 'awesome-typescript-loader'
}]
},
plugins: [
new HotModuleReplacementPlugin()
],
},
client: {
clearContext: false
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, 'coverage'), reports: ['html', 'lcovonly'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false
});
};

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/appleskiller-typescripe-lib-starter.git
git@api.gitlife.ru:oschina-mirror/appleskiller-typescripe-lib-starter.git
oschina-mirror
appleskiller-typescripe-lib-starter
appleskiller-typescripe-lib-starter
master