-
Notifications
You must be signed in to change notification settings - Fork 4
/
typings.d.ts
84 lines (73 loc) · 1.57 KB
/
typings.d.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
export interface AgentConfig {
/**
* Read commit message from the repo
* Default: `true`.
*/
includeCommitMessage?: boolean;
/**
* Absolute path for debug payload filepath
* Default: `undefined`.
*/
payloadFilepath?: string;
}
export interface AgentArgs {
slug?: string;
branch?: string;
prBranch?: string;
pr?: string;
commit?: string;
build?: string;
buildUrl?: string;
commitMessage?: string;
}
export interface EnvVars {
isCi: boolean;
service?: string;
slug?: string;
branch?: string;
pr?: string;
build?: string;
buildUrl?: string;
commit?: string;
commitMessage?: string;
/**
* RelativeCI project API key
*/
key: string;
/**
* RelativeCI ingest endpoint
*/
endpoint: string;
}
export class RelativeCiAgentWebpackPlugin {
constructor(options?: Partial<RelativeCiAgentWebpackPlugin.Options>) {}
apply(compiler: RelativeCiAgentWebpackPlugin.Compiler): void;
};
declare namespace RelativeCiAgentWebpackPlugin {
interface WebpackStatsOptions {
/**
* Output webpack assets information
* Default: `true`.
*/
assets?: Boolean;
/**
* Output webpack chunks information
* Default: `true`.
*/
chunks?: Boolean;
/**
* Output webpack modules information
* Default: `true`.
*/
modules?: Boolean;
}
interface Options extends AgentConfig {
/**
* Send webpack stats to RelativeCI
* Default: `env-ci` `isCi` value
*/
enabled?: boolean;
stats?: Partial<WebpackStatsOptions>
}
type Compiler = import('webpack').Compiler;
}