UNPKG

3.2 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var log4js = require("log4js");
4var bundler_1 = require("./bundler/bundler");
5var dependency_walker_1 = require("./bundler/dependency-walker");
6var globals_1 = require("./bundler/globals");
7var resolver_1 = require("./bundler/resolve/resolver");
8var source_reader_1 = require("./bundler/resolve/source-reader");
9var source_map_1 = require("./bundler/source-map");
10var transformer_1 = require("./bundler/transformer");
11var validator_1 = require("./bundler/validator");
12var compiler_1 = require("./compiler/compiler");
13var coverage_1 = require("./istanbul/coverage");
14var threshold_1 = require("./istanbul/threshold");
15var framework_1 = require("./karma/framework");
16var preprocessor_1 = require("./karma/preprocessor");
17var reporter_1 = require("./karma/reporter");
18var configuration_1 = require("./shared/configuration");
19var project_1 = require("./shared/project");
20var loggers = {
21 bundler: log4js.getLogger("bundler.karma-typescript"),
22 compiler: log4js.getLogger("compiler.karma-typescript"),
23 dependencyWalker: log4js.getLogger("dependency-walker.karma-typescript"),
24 project: log4js.getLogger("project.karma-typescript"),
25 resolver: log4js.getLogger("resolver.karma-typescript"),
26 sourceMap: log4js.getLogger("source-map.karma-typescript"),
27 sourceReader: log4js.getLogger("source-reader.karma-typescript"),
28 threshold: log4js.getLogger("threshold.karma-typescript"),
29 transformer: log4js.getLogger("transformer.karma-typescript"),
30 validator: log4js.getLogger("validator.karma-typescript")
31};
32var configuration = new configuration_1.Configuration(loggers);
33var project = new project_1.Project(configuration, loggers.project);
34var dependencyWalker = new dependency_walker_1.DependencyWalker(loggers.dependencyWalker);
35var compiler = new compiler_1.Compiler(configuration, loggers.compiler, project);
36var coverage = new coverage_1.Coverage(configuration);
37var transformer = new transformer_1.Transformer(configuration, loggers.transformer, project);
38var threshold = new threshold_1.Threshold(configuration, loggers.threshold);
39var validator = new validator_1.Validator(configuration, loggers.validator);
40var sourceReader = new source_reader_1.SourceReader(configuration, loggers.sourceReader, transformer);
41var resolver = new resolver_1.Resolver(configuration, dependencyWalker, loggers.resolver, sourceReader);
42var globals = new globals_1.Globals(configuration, resolver);
43var sourceMap = new source_map_1.SourceMap(configuration, loggers.sourceMap);
44var bundler = new bundler_1.Bundler(configuration, dependencyWalker, globals, loggers.bundler, project, resolver, sourceMap, transformer, validator);
45var framework = new framework_1.Framework(bundler, configuration, resolver);
46var preprocessor = new preprocessor_1.Preprocessor(bundler, compiler, configuration, coverage);
47var reporter = new reporter_1.Reporter(configuration, threshold);
48module.exports = {
49 "framework:karma-typescript": ["factory", framework.create],
50 "preprocessor:karma-typescript": ["factory", preprocessor.create],
51 "reporter:karma-typescript": ["type", reporter.create]
52};
53//# sourceMappingURL=index.js.map
\No newline at end of file