-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathverify-schema.d.ts
More file actions
84 lines (75 loc) · 2.14 KB
/
verify-schema.d.ts
File metadata and controls
84 lines (75 loc) · 2.14 KB
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
export interface VerifySchema {
releaseConfigPath?: string;
updateFlavors?: UpdateFlavor[];
verificationFlavors?: VerificationFlavor[];
outFileName?: string;
}
export interface UpdateFlavor {
name: string;
dependencies?: NpmDependency[];
updateAngularDeps?: boolean;
updateWebpack?: WebpackUpdateOptions;
dependenciesUpdateType?: "installOneByOne" | "installAllAtOnce";
saveExact?: boolean;
}
export interface NpmDependency {
/**
* Name of the package to be installed.
*/
name: string;
/**
* Package to be installed with 'npm install'.
* Will be concatenated with the package name and @. Examples:
* - 'latest' -> 'name@latest'
* - '../some-path/tns-core-modules-3.4.0.tgz' -> 'name@../some-path/tns-core-modules-3.4.0.tgz'
*/
package: string;
/**
* Specifies whether the package should be installed as
* a dependency or as a development dependency,
* or it should be added as nativescript platform.
*/
type: "dependency" | "devDependency" | "nsPlatform";
/**
* Specifies whether the package should be saved the exact
* version in the dependencies in the package.json.
* If set to true --save-exact would be added when the package is installed.
*/
saveExact?: boolean;
}
export interface WebpackUpdateOptions {
configs?: boolean;
deps?: boolean;
}
export interface VerificationFlavor {
name: string;
verifications?: Verification[];
}
export interface Verification {
platform: "android" | "ios";
type: "build" | "run";
name?: string;
bundle?: boolean;
release?: boolean;
tnsOptions?: string[];
outputSizes?: FileSizeMap;
timeline?: boolean;
markingMode?: "none" | "full";
startup?: number;
secondStartTime?: number;
numberOfRuns?: number;
expectedInOutput?: string[];
trackerTimeout?: number;
getExpectedTime?: boolean;
tolerance?: number;
copyInstallable?: boolean;
enableLifecycle?: boolean;
device?: boolean;
}
interface FileSizeMap {
[fileName: string]: string;
}
export interface ReleaseConfig {
android: string;
ios: string;
}