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