This repository was archived by the owner on Dec 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathconfig.ts
90 lines (79 loc) · 2.03 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import { Injectable } from '@angular/core';
import { SkyAppRuntimeConfigParams } from './params';
import { SkyuxConfigParams } from './config-params';
export interface RuntimeConfigApp {
base: string;
inject: boolean;
template: string;
}
export class SkyuxPactConfig {
public providers?: {
[provider: string]: {
host?: string;
port?: string;
fullUrl?: string;
}
};
public pactProxyServer?: string;
}
export interface RuntimeConfig {
app: RuntimeConfigApp;
command?: string; // Dynamically added in "higher up" webpacks
componentsPattern: string;
componentsIgnorePattern: string;
handle404?: boolean; // Dynamically added in sky-pages-module-generator.js
includeRouteModule: boolean;
pactConfig?: SkyuxPactConfig;
params: SkyAppRuntimeConfigParams;
routes?: Object[]; // Dynamically added in sky-pages-module-generator.js
routesPattern: string;
runtimeAlias: string;
spaPathAlias: string;
skyPagesOutAlias: string;
skyuxPathAlias: string;
srcPath: string;
useTemplateUrl: boolean;
}
export interface SkyuxConfigA11y {
rules?: any;
}
export interface SkyuxConfigApp {
externals?: Object;
port?: string;
title?: string;
}
export interface SkyuxConfigHost {
url?: string;
}
export interface SkyuxConfig {
a11y?: SkyuxConfigA11y | boolean;
app?: SkyuxConfigApp;
appSettings?: any;
auth?: boolean;
codeCoverageThreshold?: 'none' | 'standard' | 'strict';
command?: string;
compileMode?: string;
cssPath?: string;
help?: any;
host?: SkyuxConfigHost;
importPath?: string;
mode?: string;
name?: string;
pacts?: any[];
params?: SkyuxConfigParams; // List of allowed params
plugins?: string[];
redirects?: any;
routes?: {
public?: any[],
referenced?: any[]
};
omnibar?: any;
useHashRouting?: boolean;
}
@Injectable()
export class SkyAppConfig {
// Any properties dynamically added via code
public runtime: RuntimeConfig;
// Any properties defined in or inherited from skyuxconfig.json / skyuxconfig.command.json
public skyux: SkyuxConfig;
}