depflow 3.0.0-dev.1 → 3.0.0-dev.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -43
- package/dist/builder/Builder.d.ts +279 -0
- package/dist/builder/Builder.js +391 -0
- package/dist/builder/Builder.js.map +1 -0
- package/dist/cli/CLI.d.ts +157 -0
- package/dist/cli/CLI.js +214 -0
- package/dist/cli/CLI.js.map +1 -0
- package/dist/cli/DepFLowCLI.d.ts +93 -0
- package/dist/cli/DepFLowCLI.js +413 -0
- package/dist/cli/DepFLowCLI.js.map +1 -0
- package/dist/cli/Flags.d.ts +106 -0
- package/dist/cli/Flags.js +125 -0
- package/dist/cli/Flags.js.map +1 -0
- package/dist/cli/bin.js +68 -0
- package/dist/cli/bin.js.map +1 -0
- package/dist/config/Config.d.ts +690 -0
- package/dist/config/Config.js +45 -0
- package/dist/config/Config.js.map +1 -0
- package/dist/config/ImportMap.d.ts +60 -0
- package/dist/config/ImportMap.js +66 -0
- package/dist/config/ImportMap.js.map +1 -0
- package/dist/config/JsonSchema.d.ts +12 -0
- package/dist/config/JsonSchema.js +26 -0
- package/dist/config/JsonSchema.js.map +1 -0
- package/dist/config/Settings.d.ts +201 -0
- package/dist/config/Settings.js +191 -0
- package/dist/config/Settings.js.map +1 -0
- package/dist/config/TSConfig.d.ts +73 -0
- package/dist/config/TSConfig.js +73 -0
- package/dist/config/TSConfig.js.map +1 -0
- package/dist/config/codecs/JsonCodec.d.ts +30 -0
- package/dist/config/codecs/JsonCodec.js +31 -0
- package/dist/config/codecs/JsonCodec.js.map +1 -0
- package/dist/config/codecs/YamlCodec.d.ts +62 -0
- package/dist/config/codecs/YamlCodec.js +89 -0
- package/dist/config/codecs/YamlCodec.js.map +1 -0
- package/dist/dependency/DepUtils.d.ts +50 -0
- package/dist/dependency/DepUtils.js +71 -0
- package/dist/dependency/DepUtils.js.map +1 -0
- package/dist/dependency/Dependency.d.ts +81 -0
- package/dist/dependency/Dependency.js +71 -0
- package/dist/dependency/Dependency.js.map +1 -0
- package/dist/dependency/Git.d.ts +75 -0
- package/dist/dependency/Git.js +97 -0
- package/dist/dependency/Git.js.map +1 -0
- package/dist/dependency/GitDependency.d.ts +30 -0
- package/dist/dependency/GitDependency.js +79 -0
- package/dist/dependency/GitDependency.js.map +1 -0
- package/dist/dependency/NpmDependency.d.ts +27 -0
- package/dist/dependency/NpmDependency.js +91 -0
- package/dist/dependency/NpmDependency.js.map +1 -0
- package/dist/resolve/AliasCompiler.d.ts +45 -0
- package/dist/resolve/AliasCompiler.js +84 -0
- package/dist/resolve/AliasCompiler.js.map +1 -0
- package/{build/support/PathResolver → dist/resolve}/PathResolver.d.ts +26 -9
- package/dist/resolve/PathResolver.js +133 -0
- package/dist/resolve/PathResolver.js.map +1 -0
- package/dist/resolve/PathRewriter.d.ts +24 -0
- package/{build/support/PathResolver → dist/resolve}/PathRewriter.js +21 -11
- package/dist/resolve/PathRewriter.js.map +1 -0
- package/dist/schema/Config/Builder.d.ts +496 -0
- package/dist/schema/Config/Builder.js +78 -0
- package/dist/schema/Config/Builder.js.map +1 -0
- package/dist/schema/Config/Config.d.ts +673 -0
- package/dist/schema/Config/Config.js +62 -0
- package/dist/schema/Config/Config.js.map +1 -0
- package/dist/schema/Config/Dependency.d.ts +878 -0
- package/dist/schema/Config/Dependency.js +80 -0
- package/dist/schema/Config/Dependency.js.map +1 -0
- package/dist/schema/Config/Extractor.d.ts +157 -0
- package/dist/schema/Config/Extractor.js +43 -0
- package/dist/schema/Config/Extractor.js.map +1 -0
- package/dist/schema/Config/Resolver.d.ts +87 -0
- package/dist/schema/Config/Resolver.js +43 -0
- package/dist/schema/Config/Resolver.js.map +1 -0
- package/dist/schema/Config/Transform.d.ts +90 -0
- package/dist/schema/Config/Transform.js +51 -0
- package/dist/schema/Config/Transform.js.map +1 -0
- package/dist/schema/Defaults.d.ts +20 -0
- package/dist/schema/Defaults.js +24 -0
- package/dist/schema/Defaults.js.map +1 -0
- package/dist/schema/ImportMap.d.ts +30 -0
- package/dist/schema/ImportMap.js +28 -0
- package/dist/schema/ImportMap.js.map +1 -0
- package/dist/schema/TSConfig.d.ts +70 -0
- package/dist/schema/TSConfig.js +39 -0
- package/dist/schema/TSConfig.js.map +1 -0
- package/dist/schema/schema.d.ts +38 -0
- package/dist/schema/schema.js +40 -0
- package/dist/schema/schema.js.map +1 -0
- package/dist/task/Command.d.ts +287 -0
- package/dist/task/Command.js +404 -0
- package/dist/task/Command.js.map +1 -0
- package/dist/task/Group.d.ts +15 -0
- package/dist/task/Group.js +29 -0
- package/dist/task/Group.js.map +1 -0
- package/dist/task/OutputPolicy.d.ts +262 -0
- package/dist/task/OutputPolicy.js +364 -0
- package/dist/task/OutputPolicy.js.map +1 -0
- package/dist/task/Task.d.ts +210 -0
- package/dist/task/Task.js +312 -0
- package/dist/task/Task.js.map +1 -0
- package/package.json +16 -14
- package/.gitignore +0 -7
- package/build/cli/DepFLowCLI.d.ts +0 -15
- package/build/cli/DepFLowCLI.js +0 -223
- package/build/cli/DepFLowCLI.js.map +0 -1
- package/build/cli/bin.js +0 -41
- package/build/cli/bin.js.map +0 -1
- package/build/config/Config.d.ts +0 -28
- package/build/config/Config.js +0 -46
- package/build/config/Config.js.map +0 -1
- package/build/config/ImportMap.d.ts +0 -37
- package/build/config/ImportMap.js +0 -82
- package/build/config/ImportMap.js.map +0 -1
- package/build/config/Tsconfig.d.ts +0 -57
- package/build/config/Tsconfig.js +0 -100
- package/build/config/Tsconfig.js.map +0 -1
- package/build/config/schemas.d.ts +0 -1194
- package/build/config/schemas.js +0 -66
- package/build/config/schemas.js.map +0 -1
- package/build/support/Async.d.ts +0 -22
- package/build/support/Async.js +0 -62
- package/build/support/Async.js.map +0 -1
- package/build/support/Builder/Builder.d.ts +0 -36
- package/build/support/Builder/Builder.js +0 -89
- package/build/support/Builder/Builder.js.map +0 -1
- package/build/support/Dependency/Dependency.d.ts +0 -38
- package/build/support/Dependency/Dependency.js +0 -14
- package/build/support/Dependency/Dependency.js.map +0 -1
- package/build/support/Dependency/GitDependency.d.ts +0 -20
- package/build/support/Dependency/GitDependency.js +0 -67
- package/build/support/Dependency/GitDependency.js.map +0 -1
- package/build/support/Dependency/NpmDependency.d.ts +0 -18
- package/build/support/Dependency/NpmDependency.js +0 -65
- package/build/support/Dependency/NpmDependency.js.map +0 -1
- package/build/support/Dependency/Resolver.d.ts +0 -7
- package/build/support/Dependency/Resolver.js +0 -4
- package/build/support/Dependency/Resolver.js.map +0 -1
- package/build/support/Git.d.ts +0 -53
- package/build/support/Git.js +0 -86
- package/build/support/Git.js.map +0 -1
- package/build/support/PathResolver/AliasCompiler.d.ts +0 -25
- package/build/support/PathResolver/AliasCompiler.js +0 -39
- package/build/support/PathResolver/AliasCompiler.js.map +0 -1
- package/build/support/PathResolver/PathResolver.js +0 -104
- package/build/support/PathResolver/PathResolver.js.map +0 -1
- package/build/support/PathResolver/PathRewriter.d.ts +0 -18
- package/build/support/PathResolver/PathRewriter.js.map +0 -1
- package/build/support/PathResolver/Utils.d.ts +0 -36
- package/build/support/PathResolver/Utils.js +0 -45
- package/build/support/PathResolver/Utils.js.map +0 -1
- package/build/support/Task/Command.d.ts +0 -49
- package/build/support/Task/Command.js +0 -100
- package/build/support/Task/Command.js.map +0 -1
- package/build/support/Task/Task.d.ts +0 -84
- package/build/support/Task/Task.js +0 -145
- package/build/support/Task/Task.js.map +0 -1
- package/build/support/Utils.d.ts +0 -40
- package/build/support/Utils.js +0 -138
- package/build/support/Utils.js.map +0 -1
- package/build/support/Validator.d.ts +0 -22
- package/build/support/Validator.js +0 -28
- package/build/support/Validator.js.map +0 -1
- /package/{build → dist}/cli/bin.d.ts +0 -0
|
@@ -0,0 +1,673 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author NetFeez <netfeez.dev@gmail.com>.
|
|
3
|
+
* @description Root configuration schema: dependencies, resolver, build actions and output paths.
|
|
4
|
+
* @license Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import Schema from '@netfeez/schema';
|
|
7
|
+
export declare const Config: Schema<{
|
|
8
|
+
readonly type: "object";
|
|
9
|
+
readonly keys: {
|
|
10
|
+
readonly $schema: {
|
|
11
|
+
readonly type: "string";
|
|
12
|
+
readonly default: ".depflow/schema.json";
|
|
13
|
+
readonly description: "Path to the JSON Schema describing the configuration. Used by editors and tools to provide validation, autocompletion and other features.";
|
|
14
|
+
};
|
|
15
|
+
readonly outDir: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly default: "dist";
|
|
18
|
+
readonly description: "Output directory for built files. Can be relative or absolute. Defaults to \"dist\".";
|
|
19
|
+
};
|
|
20
|
+
readonly tsconfig: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
readonly nullable: true;
|
|
23
|
+
readonly default: null;
|
|
24
|
+
readonly description: "Path to the tsconfig.json file. Can be relative or absolute. Defaults to \"tsconfig.json\".";
|
|
25
|
+
};
|
|
26
|
+
readonly importmap: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
readonly nullable: true;
|
|
29
|
+
readonly default: null;
|
|
30
|
+
readonly description: "Path to the importmap.json file. Can be relative or absolute. Defaults to \"importmap.json\".";
|
|
31
|
+
};
|
|
32
|
+
readonly actions: {
|
|
33
|
+
readonly type: "object";
|
|
34
|
+
readonly additional: {
|
|
35
|
+
readonly type: "array";
|
|
36
|
+
readonly default: never[];
|
|
37
|
+
readonly items: {
|
|
38
|
+
readonly type: "union";
|
|
39
|
+
readonly required: true;
|
|
40
|
+
readonly union: readonly [{
|
|
41
|
+
readonly type: "object";
|
|
42
|
+
readonly required: true;
|
|
43
|
+
readonly keys: {
|
|
44
|
+
readonly maxTimeMs: {
|
|
45
|
+
readonly type: "number";
|
|
46
|
+
readonly default: 60000;
|
|
47
|
+
readonly minimum: -1;
|
|
48
|
+
readonly description: "Maximum execution time for the run step in milliseconds. A value of -1 disables the limit.";
|
|
49
|
+
};
|
|
50
|
+
readonly allowFails: {
|
|
51
|
+
readonly type: "boolean";
|
|
52
|
+
readonly default: false;
|
|
53
|
+
readonly description: "Whether failed commands within the step are tolerated. Defaults to false.";
|
|
54
|
+
};
|
|
55
|
+
readonly run: {
|
|
56
|
+
readonly type: "union";
|
|
57
|
+
readonly required: true;
|
|
58
|
+
readonly union: readonly [{
|
|
59
|
+
readonly type: "string";
|
|
60
|
+
}, {
|
|
61
|
+
readonly type: "array";
|
|
62
|
+
readonly items: {
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
};
|
|
65
|
+
}];
|
|
66
|
+
readonly description: "Shell command or list of shell commands to execute.";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}, {
|
|
70
|
+
readonly type: "object";
|
|
71
|
+
readonly required: true;
|
|
72
|
+
readonly keys: {
|
|
73
|
+
readonly extract: {
|
|
74
|
+
readonly type: "union";
|
|
75
|
+
readonly required: true;
|
|
76
|
+
readonly union: readonly [{
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
}, {
|
|
79
|
+
readonly type: "object";
|
|
80
|
+
readonly required: true;
|
|
81
|
+
readonly additional: {
|
|
82
|
+
readonly type: "union";
|
|
83
|
+
readonly required: true;
|
|
84
|
+
readonly union: readonly [{
|
|
85
|
+
readonly type: "string";
|
|
86
|
+
readonly required: true;
|
|
87
|
+
}, {
|
|
88
|
+
readonly type: "object";
|
|
89
|
+
readonly required: true;
|
|
90
|
+
readonly keys: {
|
|
91
|
+
readonly to: {
|
|
92
|
+
readonly type: "string";
|
|
93
|
+
readonly required: true;
|
|
94
|
+
readonly description: "Destination folder to which the matched files are copied. A relative path is resolved against the project root, an absolute one is used as it stands.";
|
|
95
|
+
};
|
|
96
|
+
readonly map: {
|
|
97
|
+
readonly type: "union";
|
|
98
|
+
readonly union: readonly [{
|
|
99
|
+
readonly type: "string";
|
|
100
|
+
}, {
|
|
101
|
+
readonly type: "object";
|
|
102
|
+
readonly keys: {
|
|
103
|
+
readonly search: {
|
|
104
|
+
readonly type: "string";
|
|
105
|
+
readonly required: true;
|
|
106
|
+
readonly description: "The regular expression pattern to search for in the file content.";
|
|
107
|
+
};
|
|
108
|
+
readonly flags: {
|
|
109
|
+
readonly type: "string";
|
|
110
|
+
readonly default: "g";
|
|
111
|
+
readonly pattern: RegExp;
|
|
112
|
+
readonly description: "Flags applied to the regular expression search. Defaults to \"g\" (global).";
|
|
113
|
+
};
|
|
114
|
+
readonly replace: {
|
|
115
|
+
readonly type: "string";
|
|
116
|
+
readonly required: true;
|
|
117
|
+
readonly description: "The replacement string used to substitute the matches found by the search pattern.";
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
}];
|
|
121
|
+
readonly required: false;
|
|
122
|
+
readonly description: "Transformation applied to the destination path of the extracted files.";
|
|
123
|
+
};
|
|
124
|
+
readonly transform: {
|
|
125
|
+
readonly type: "union";
|
|
126
|
+
readonly union: readonly [{
|
|
127
|
+
readonly type: "string";
|
|
128
|
+
}, {
|
|
129
|
+
readonly type: "object";
|
|
130
|
+
readonly keys: {
|
|
131
|
+
readonly search: {
|
|
132
|
+
readonly type: "string";
|
|
133
|
+
readonly required: true;
|
|
134
|
+
readonly description: "The regular expression pattern to search for in the file content.";
|
|
135
|
+
};
|
|
136
|
+
readonly flags: {
|
|
137
|
+
readonly type: "string";
|
|
138
|
+
readonly default: "g";
|
|
139
|
+
readonly pattern: RegExp;
|
|
140
|
+
readonly description: "Flags applied to the regular expression search. Defaults to \"g\" (global).";
|
|
141
|
+
};
|
|
142
|
+
readonly replace: {
|
|
143
|
+
readonly type: "string";
|
|
144
|
+
readonly required: true;
|
|
145
|
+
readonly description: "The replacement string used to substitute the matches found by the search pattern.";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
}];
|
|
149
|
+
readonly required: false;
|
|
150
|
+
readonly description: "Transformation applied to the content of the extracted files.";
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
}];
|
|
154
|
+
};
|
|
155
|
+
readonly description: "Mapping of source glob patterns, relative to the folder the pipeline works in, to extraction entries, each describing where and how files are extracted.";
|
|
156
|
+
}];
|
|
157
|
+
readonly description: "Destination folder for the extracted files or an extraction mapping.";
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
}, {
|
|
161
|
+
readonly type: "object";
|
|
162
|
+
readonly required: true;
|
|
163
|
+
readonly keys: {
|
|
164
|
+
readonly transform: {
|
|
165
|
+
readonly type: "object";
|
|
166
|
+
readonly required: true;
|
|
167
|
+
readonly keys: {
|
|
168
|
+
readonly search: {
|
|
169
|
+
readonly type: "string";
|
|
170
|
+
readonly required: true;
|
|
171
|
+
readonly description: "The regular expression pattern to search for in the file content.";
|
|
172
|
+
};
|
|
173
|
+
readonly flags: {
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
readonly default: "g";
|
|
176
|
+
readonly pattern: RegExp;
|
|
177
|
+
readonly description: "Flags applied to the regular expression search. Defaults to \"g\" (global).";
|
|
178
|
+
};
|
|
179
|
+
readonly replace: {
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
readonly required: true;
|
|
182
|
+
readonly description: "The replacement string used to substitute the matches found by the search pattern.";
|
|
183
|
+
};
|
|
184
|
+
readonly glob: {
|
|
185
|
+
readonly type: "string";
|
|
186
|
+
readonly required: true;
|
|
187
|
+
readonly description: "Glob pattern matching the files to which the global transformation is applied.";
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
readonly description: "Global transformation to apply over the files matched by the glob pattern.";
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
}];
|
|
194
|
+
readonly description: "A single build step: run commands, extract files or apply a global transformation.";
|
|
195
|
+
};
|
|
196
|
+
readonly description: "Ordered pipeline of build steps applied when a dependency is built.";
|
|
197
|
+
};
|
|
198
|
+
readonly default: Record<string, never>;
|
|
199
|
+
readonly description: "Named build actions. Each action runs a pipeline of run, extract and transform steps.";
|
|
200
|
+
};
|
|
201
|
+
readonly resolver: {
|
|
202
|
+
readonly type: "object";
|
|
203
|
+
readonly required: true;
|
|
204
|
+
readonly additional: {
|
|
205
|
+
readonly type: "union";
|
|
206
|
+
readonly required: true;
|
|
207
|
+
readonly union: readonly [{
|
|
208
|
+
readonly type: "string";
|
|
209
|
+
}, {
|
|
210
|
+
readonly type: "object";
|
|
211
|
+
readonly keys: {
|
|
212
|
+
readonly local: {
|
|
213
|
+
readonly type: "string";
|
|
214
|
+
readonly required: true;
|
|
215
|
+
readonly description: "Local path or glob pattern the dependency resolves to.";
|
|
216
|
+
};
|
|
217
|
+
readonly type: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
readonly description: "Optional identifier describing the resolution type.";
|
|
220
|
+
};
|
|
221
|
+
readonly cdn: {
|
|
222
|
+
readonly type: "string";
|
|
223
|
+
readonly description: "CDN URL used when the dependency is resolved in CDN mode.";
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
}];
|
|
227
|
+
readonly description: "Resolution target of a dependency: either a plain string or an object with local, type and cdn options.";
|
|
228
|
+
};
|
|
229
|
+
readonly default: Record<string, never>;
|
|
230
|
+
readonly description: "Mapping of dependency names to their resolution targets (local file or CDN). Paths are resolved relative to this folder.";
|
|
231
|
+
};
|
|
232
|
+
readonly dependencies: {
|
|
233
|
+
readonly type: "array";
|
|
234
|
+
readonly default: never[];
|
|
235
|
+
readonly items: {
|
|
236
|
+
readonly type: "object";
|
|
237
|
+
readonly keys: {
|
|
238
|
+
readonly name: {
|
|
239
|
+
readonly type: "string";
|
|
240
|
+
readonly required: true;
|
|
241
|
+
readonly pattern: RegExp;
|
|
242
|
+
readonly description: "Unique name used to reference the dependency in flows and path aliases. It is an identity, not a path: a single alphanumeric segment.";
|
|
243
|
+
};
|
|
244
|
+
readonly repo: {
|
|
245
|
+
readonly type: "string";
|
|
246
|
+
readonly required: true;
|
|
247
|
+
readonly description: "Git repository URL to clone the dependency from.";
|
|
248
|
+
};
|
|
249
|
+
readonly tag: {
|
|
250
|
+
readonly type: "string";
|
|
251
|
+
readonly default: "main";
|
|
252
|
+
readonly description: "Git tag, branch or commit to check out after cloning. Defaults to \"main\".";
|
|
253
|
+
};
|
|
254
|
+
readonly builder: {
|
|
255
|
+
readonly type: "array";
|
|
256
|
+
readonly items: {
|
|
257
|
+
readonly type: "union";
|
|
258
|
+
readonly required: true;
|
|
259
|
+
readonly union: readonly [{
|
|
260
|
+
readonly type: "object";
|
|
261
|
+
readonly required: true;
|
|
262
|
+
readonly keys: {
|
|
263
|
+
readonly maxTimeMs: {
|
|
264
|
+
readonly type: "number";
|
|
265
|
+
readonly default: 60000;
|
|
266
|
+
readonly minimum: -1;
|
|
267
|
+
readonly description: "Maximum execution time for the run step in milliseconds. A value of -1 disables the limit.";
|
|
268
|
+
};
|
|
269
|
+
readonly allowFails: {
|
|
270
|
+
readonly type: "boolean";
|
|
271
|
+
readonly default: false;
|
|
272
|
+
readonly description: "Whether failed commands within the step are tolerated. Defaults to false.";
|
|
273
|
+
};
|
|
274
|
+
readonly run: {
|
|
275
|
+
readonly type: "union";
|
|
276
|
+
readonly required: true;
|
|
277
|
+
readonly union: readonly [{
|
|
278
|
+
readonly type: "string";
|
|
279
|
+
}, {
|
|
280
|
+
readonly type: "array";
|
|
281
|
+
readonly items: {
|
|
282
|
+
readonly type: "string";
|
|
283
|
+
};
|
|
284
|
+
}];
|
|
285
|
+
readonly description: "Shell command or list of shell commands to execute.";
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
}, {
|
|
289
|
+
readonly type: "object";
|
|
290
|
+
readonly required: true;
|
|
291
|
+
readonly keys: {
|
|
292
|
+
readonly extract: {
|
|
293
|
+
readonly type: "union";
|
|
294
|
+
readonly required: true;
|
|
295
|
+
readonly union: readonly [{
|
|
296
|
+
readonly type: "string";
|
|
297
|
+
}, {
|
|
298
|
+
readonly type: "object";
|
|
299
|
+
readonly required: true;
|
|
300
|
+
readonly additional: {
|
|
301
|
+
readonly type: "union";
|
|
302
|
+
readonly required: true;
|
|
303
|
+
readonly union: readonly [{
|
|
304
|
+
readonly type: "string";
|
|
305
|
+
readonly required: true;
|
|
306
|
+
}, {
|
|
307
|
+
readonly type: "object";
|
|
308
|
+
readonly required: true;
|
|
309
|
+
readonly keys: {
|
|
310
|
+
readonly to: {
|
|
311
|
+
readonly type: "string";
|
|
312
|
+
readonly required: true;
|
|
313
|
+
readonly description: "Destination folder to which the matched files are copied. A relative path is resolved against the project root, an absolute one is used as it stands.";
|
|
314
|
+
};
|
|
315
|
+
readonly map: {
|
|
316
|
+
readonly type: "union";
|
|
317
|
+
readonly union: readonly [{
|
|
318
|
+
readonly type: "string";
|
|
319
|
+
}, {
|
|
320
|
+
readonly type: "object";
|
|
321
|
+
readonly keys: {
|
|
322
|
+
readonly search: {
|
|
323
|
+
readonly type: "string";
|
|
324
|
+
readonly required: true;
|
|
325
|
+
readonly description: "The regular expression pattern to search for in the file content.";
|
|
326
|
+
};
|
|
327
|
+
readonly flags: {
|
|
328
|
+
readonly type: "string";
|
|
329
|
+
readonly default: "g";
|
|
330
|
+
readonly pattern: RegExp;
|
|
331
|
+
readonly description: "Flags applied to the regular expression search. Defaults to \"g\" (global).";
|
|
332
|
+
};
|
|
333
|
+
readonly replace: {
|
|
334
|
+
readonly type: "string";
|
|
335
|
+
readonly required: true;
|
|
336
|
+
readonly description: "The replacement string used to substitute the matches found by the search pattern.";
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
}];
|
|
340
|
+
readonly required: false;
|
|
341
|
+
readonly description: "Transformation applied to the destination path of the extracted files.";
|
|
342
|
+
};
|
|
343
|
+
readonly transform: {
|
|
344
|
+
readonly type: "union";
|
|
345
|
+
readonly union: readonly [{
|
|
346
|
+
readonly type: "string";
|
|
347
|
+
}, {
|
|
348
|
+
readonly type: "object";
|
|
349
|
+
readonly keys: {
|
|
350
|
+
readonly search: {
|
|
351
|
+
readonly type: "string";
|
|
352
|
+
readonly required: true;
|
|
353
|
+
readonly description: "The regular expression pattern to search for in the file content.";
|
|
354
|
+
};
|
|
355
|
+
readonly flags: {
|
|
356
|
+
readonly type: "string";
|
|
357
|
+
readonly default: "g";
|
|
358
|
+
readonly pattern: RegExp;
|
|
359
|
+
readonly description: "Flags applied to the regular expression search. Defaults to \"g\" (global).";
|
|
360
|
+
};
|
|
361
|
+
readonly replace: {
|
|
362
|
+
readonly type: "string";
|
|
363
|
+
readonly required: true;
|
|
364
|
+
readonly description: "The replacement string used to substitute the matches found by the search pattern.";
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
}];
|
|
368
|
+
readonly required: false;
|
|
369
|
+
readonly description: "Transformation applied to the content of the extracted files.";
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
}];
|
|
373
|
+
};
|
|
374
|
+
readonly description: "Mapping of source glob patterns, relative to the folder the pipeline works in, to extraction entries, each describing where and how files are extracted.";
|
|
375
|
+
}];
|
|
376
|
+
readonly description: "Destination folder for the extracted files or an extraction mapping.";
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
}, {
|
|
380
|
+
readonly type: "object";
|
|
381
|
+
readonly required: true;
|
|
382
|
+
readonly keys: {
|
|
383
|
+
readonly transform: {
|
|
384
|
+
readonly type: "object";
|
|
385
|
+
readonly required: true;
|
|
386
|
+
readonly keys: {
|
|
387
|
+
readonly search: {
|
|
388
|
+
readonly type: "string";
|
|
389
|
+
readonly required: true;
|
|
390
|
+
readonly description: "The regular expression pattern to search for in the file content.";
|
|
391
|
+
};
|
|
392
|
+
readonly flags: {
|
|
393
|
+
readonly type: "string";
|
|
394
|
+
readonly default: "g";
|
|
395
|
+
readonly pattern: RegExp;
|
|
396
|
+
readonly description: "Flags applied to the regular expression search. Defaults to \"g\" (global).";
|
|
397
|
+
};
|
|
398
|
+
readonly replace: {
|
|
399
|
+
readonly type: "string";
|
|
400
|
+
readonly required: true;
|
|
401
|
+
readonly description: "The replacement string used to substitute the matches found by the search pattern.";
|
|
402
|
+
};
|
|
403
|
+
readonly glob: {
|
|
404
|
+
readonly type: "string";
|
|
405
|
+
readonly required: true;
|
|
406
|
+
readonly description: "Glob pattern matching the files to which the global transformation is applied.";
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
readonly description: "Global transformation to apply over the files matched by the glob pattern.";
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
}];
|
|
413
|
+
readonly description: "A single build step: run commands, extract files or apply a global transformation.";
|
|
414
|
+
};
|
|
415
|
+
readonly default: never[];
|
|
416
|
+
readonly description: "Build pipeline applied after cloning the repository.";
|
|
417
|
+
};
|
|
418
|
+
readonly resolver: {
|
|
419
|
+
readonly type: "object";
|
|
420
|
+
readonly required: true;
|
|
421
|
+
readonly additional: {
|
|
422
|
+
readonly type: "union";
|
|
423
|
+
readonly required: true;
|
|
424
|
+
readonly union: readonly [{
|
|
425
|
+
readonly type: "string";
|
|
426
|
+
}, {
|
|
427
|
+
readonly type: "object";
|
|
428
|
+
readonly keys: {
|
|
429
|
+
readonly local: {
|
|
430
|
+
readonly type: "string";
|
|
431
|
+
readonly required: true;
|
|
432
|
+
readonly description: "Local path or glob pattern the dependency resolves to.";
|
|
433
|
+
};
|
|
434
|
+
readonly type: {
|
|
435
|
+
readonly type: "string";
|
|
436
|
+
readonly description: "Optional identifier describing the resolution type.";
|
|
437
|
+
};
|
|
438
|
+
readonly cdn: {
|
|
439
|
+
readonly type: "string";
|
|
440
|
+
readonly description: "CDN URL used when the dependency is resolved in CDN mode.";
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
}];
|
|
444
|
+
readonly description: "Resolution target of a dependency: either a plain string or an object with local, type and cdn options.";
|
|
445
|
+
};
|
|
446
|
+
readonly default: Record<string, never>;
|
|
447
|
+
readonly description: "Target resolution used to rewrite the dependency paths.";
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
readonly description: "Git dependencies to clone and build, each an object with a name and a repo.";
|
|
452
|
+
};
|
|
453
|
+
readonly npmDependencies: {
|
|
454
|
+
readonly type: "array";
|
|
455
|
+
readonly default: never[];
|
|
456
|
+
readonly items: {
|
|
457
|
+
readonly type: "object";
|
|
458
|
+
readonly keys: {
|
|
459
|
+
readonly name: {
|
|
460
|
+
readonly type: "string";
|
|
461
|
+
readonly required: true;
|
|
462
|
+
readonly pattern: RegExp;
|
|
463
|
+
readonly description: "NPM package name to install, optionally scoped.";
|
|
464
|
+
};
|
|
465
|
+
readonly version: {
|
|
466
|
+
readonly type: "string";
|
|
467
|
+
readonly required: true;
|
|
468
|
+
readonly description: "NPM package version or semver range to install.";
|
|
469
|
+
};
|
|
470
|
+
readonly builder: {
|
|
471
|
+
readonly type: "array";
|
|
472
|
+
readonly items: {
|
|
473
|
+
readonly type: "union";
|
|
474
|
+
readonly required: true;
|
|
475
|
+
readonly union: readonly [{
|
|
476
|
+
readonly type: "object";
|
|
477
|
+
readonly required: true;
|
|
478
|
+
readonly keys: {
|
|
479
|
+
readonly maxTimeMs: {
|
|
480
|
+
readonly type: "number";
|
|
481
|
+
readonly default: 60000;
|
|
482
|
+
readonly minimum: -1;
|
|
483
|
+
readonly description: "Maximum execution time for the run step in milliseconds. A value of -1 disables the limit.";
|
|
484
|
+
};
|
|
485
|
+
readonly allowFails: {
|
|
486
|
+
readonly type: "boolean";
|
|
487
|
+
readonly default: false;
|
|
488
|
+
readonly description: "Whether failed commands within the step are tolerated. Defaults to false.";
|
|
489
|
+
};
|
|
490
|
+
readonly run: {
|
|
491
|
+
readonly type: "union";
|
|
492
|
+
readonly required: true;
|
|
493
|
+
readonly union: readonly [{
|
|
494
|
+
readonly type: "string";
|
|
495
|
+
}, {
|
|
496
|
+
readonly type: "array";
|
|
497
|
+
readonly items: {
|
|
498
|
+
readonly type: "string";
|
|
499
|
+
};
|
|
500
|
+
}];
|
|
501
|
+
readonly description: "Shell command or list of shell commands to execute.";
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
}, {
|
|
505
|
+
readonly type: "object";
|
|
506
|
+
readonly required: true;
|
|
507
|
+
readonly keys: {
|
|
508
|
+
readonly extract: {
|
|
509
|
+
readonly type: "union";
|
|
510
|
+
readonly required: true;
|
|
511
|
+
readonly union: readonly [{
|
|
512
|
+
readonly type: "string";
|
|
513
|
+
}, {
|
|
514
|
+
readonly type: "object";
|
|
515
|
+
readonly required: true;
|
|
516
|
+
readonly additional: {
|
|
517
|
+
readonly type: "union";
|
|
518
|
+
readonly required: true;
|
|
519
|
+
readonly union: readonly [{
|
|
520
|
+
readonly type: "string";
|
|
521
|
+
readonly required: true;
|
|
522
|
+
}, {
|
|
523
|
+
readonly type: "object";
|
|
524
|
+
readonly required: true;
|
|
525
|
+
readonly keys: {
|
|
526
|
+
readonly to: {
|
|
527
|
+
readonly type: "string";
|
|
528
|
+
readonly required: true;
|
|
529
|
+
readonly description: "Destination folder to which the matched files are copied. A relative path is resolved against the project root, an absolute one is used as it stands.";
|
|
530
|
+
};
|
|
531
|
+
readonly map: {
|
|
532
|
+
readonly type: "union";
|
|
533
|
+
readonly union: readonly [{
|
|
534
|
+
readonly type: "string";
|
|
535
|
+
}, {
|
|
536
|
+
readonly type: "object";
|
|
537
|
+
readonly keys: {
|
|
538
|
+
readonly search: {
|
|
539
|
+
readonly type: "string";
|
|
540
|
+
readonly required: true;
|
|
541
|
+
readonly description: "The regular expression pattern to search for in the file content.";
|
|
542
|
+
};
|
|
543
|
+
readonly flags: {
|
|
544
|
+
readonly type: "string";
|
|
545
|
+
readonly default: "g";
|
|
546
|
+
readonly pattern: RegExp;
|
|
547
|
+
readonly description: "Flags applied to the regular expression search. Defaults to \"g\" (global).";
|
|
548
|
+
};
|
|
549
|
+
readonly replace: {
|
|
550
|
+
readonly type: "string";
|
|
551
|
+
readonly required: true;
|
|
552
|
+
readonly description: "The replacement string used to substitute the matches found by the search pattern.";
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
}];
|
|
556
|
+
readonly required: false;
|
|
557
|
+
readonly description: "Transformation applied to the destination path of the extracted files.";
|
|
558
|
+
};
|
|
559
|
+
readonly transform: {
|
|
560
|
+
readonly type: "union";
|
|
561
|
+
readonly union: readonly [{
|
|
562
|
+
readonly type: "string";
|
|
563
|
+
}, {
|
|
564
|
+
readonly type: "object";
|
|
565
|
+
readonly keys: {
|
|
566
|
+
readonly search: {
|
|
567
|
+
readonly type: "string";
|
|
568
|
+
readonly required: true;
|
|
569
|
+
readonly description: "The regular expression pattern to search for in the file content.";
|
|
570
|
+
};
|
|
571
|
+
readonly flags: {
|
|
572
|
+
readonly type: "string";
|
|
573
|
+
readonly default: "g";
|
|
574
|
+
readonly pattern: RegExp;
|
|
575
|
+
readonly description: "Flags applied to the regular expression search. Defaults to \"g\" (global).";
|
|
576
|
+
};
|
|
577
|
+
readonly replace: {
|
|
578
|
+
readonly type: "string";
|
|
579
|
+
readonly required: true;
|
|
580
|
+
readonly description: "The replacement string used to substitute the matches found by the search pattern.";
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
}];
|
|
584
|
+
readonly required: false;
|
|
585
|
+
readonly description: "Transformation applied to the content of the extracted files.";
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
}];
|
|
589
|
+
};
|
|
590
|
+
readonly description: "Mapping of source glob patterns, relative to the folder the pipeline works in, to extraction entries, each describing where and how files are extracted.";
|
|
591
|
+
}];
|
|
592
|
+
readonly description: "Destination folder for the extracted files or an extraction mapping.";
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
}, {
|
|
596
|
+
readonly type: "object";
|
|
597
|
+
readonly required: true;
|
|
598
|
+
readonly keys: {
|
|
599
|
+
readonly transform: {
|
|
600
|
+
readonly type: "object";
|
|
601
|
+
readonly required: true;
|
|
602
|
+
readonly keys: {
|
|
603
|
+
readonly search: {
|
|
604
|
+
readonly type: "string";
|
|
605
|
+
readonly required: true;
|
|
606
|
+
readonly description: "The regular expression pattern to search for in the file content.";
|
|
607
|
+
};
|
|
608
|
+
readonly flags: {
|
|
609
|
+
readonly type: "string";
|
|
610
|
+
readonly default: "g";
|
|
611
|
+
readonly pattern: RegExp;
|
|
612
|
+
readonly description: "Flags applied to the regular expression search. Defaults to \"g\" (global).";
|
|
613
|
+
};
|
|
614
|
+
readonly replace: {
|
|
615
|
+
readonly type: "string";
|
|
616
|
+
readonly required: true;
|
|
617
|
+
readonly description: "The replacement string used to substitute the matches found by the search pattern.";
|
|
618
|
+
};
|
|
619
|
+
readonly glob: {
|
|
620
|
+
readonly type: "string";
|
|
621
|
+
readonly required: true;
|
|
622
|
+
readonly description: "Glob pattern matching the files to which the global transformation is applied.";
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
readonly description: "Global transformation to apply over the files matched by the glob pattern.";
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
}];
|
|
629
|
+
readonly description: "A single build step: run commands, extract files or apply a global transformation.";
|
|
630
|
+
};
|
|
631
|
+
readonly default: never[];
|
|
632
|
+
readonly description: "Build pipeline applied after installing the package.";
|
|
633
|
+
};
|
|
634
|
+
readonly resolver: {
|
|
635
|
+
readonly type: "object";
|
|
636
|
+
readonly required: true;
|
|
637
|
+
readonly additional: {
|
|
638
|
+
readonly type: "union";
|
|
639
|
+
readonly required: true;
|
|
640
|
+
readonly union: readonly [{
|
|
641
|
+
readonly type: "string";
|
|
642
|
+
}, {
|
|
643
|
+
readonly type: "object";
|
|
644
|
+
readonly keys: {
|
|
645
|
+
readonly local: {
|
|
646
|
+
readonly type: "string";
|
|
647
|
+
readonly required: true;
|
|
648
|
+
readonly description: "Local path or glob pattern the dependency resolves to.";
|
|
649
|
+
};
|
|
650
|
+
readonly type: {
|
|
651
|
+
readonly type: "string";
|
|
652
|
+
readonly description: "Optional identifier describing the resolution type.";
|
|
653
|
+
};
|
|
654
|
+
readonly cdn: {
|
|
655
|
+
readonly type: "string";
|
|
656
|
+
readonly description: "CDN URL used when the dependency is resolved in CDN mode.";
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
}];
|
|
660
|
+
readonly description: "Resolution target of a dependency: either a plain string or an object with local, type and cdn options.";
|
|
661
|
+
};
|
|
662
|
+
readonly default: Record<string, never>;
|
|
663
|
+
readonly description: "Target resolution used to rewrite the dependency paths.";
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
};
|
|
667
|
+
readonly description: "NPM dependencies to install and build, each an object with a name and a version.";
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
}>;
|
|
671
|
+
export type Config = typeof Config.infer;
|
|
672
|
+
export declare namespace Config { }
|
|
673
|
+
export default Config;
|