slnodejs 6.1.1163 → 6.2.1
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 +1 -1
- package/browser-agent/dist/browser-agent-all.js +16 -7
- package/browser-agent/dist/browser-agent-all.min.js +2 -2
- package/package.json +4 -2
- package/tsOutputs/build-scanner/js_diff/dry-run-files-mapping.js +8 -2
- package/tsOutputs/build-scanner/js_diff/dry-run-files-mapping.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/files-mapping.js +9 -2
- package/tsOutputs/build-scanner/js_diff/files-mapping.js.map +1 -1
- package/tsOutputs/cli-parse/cli.js +123 -333
- package/tsOutputs/cli-parse/cli.js.map +1 -1
- package/tsOutputs/cli-parse/config/config-resolver.js +175 -0
- package/tsOutputs/cli-parse/config/config-resolver.js.map +1 -0
- package/tsOutputs/cli-parse/config/config-store.js +40 -0
- package/tsOutputs/cli-parse/config/config-store.js.map +1 -0
- package/tsOutputs/cli-parse/config/create-options-from-keys.js +161 -0
- package/tsOutputs/cli-parse/config/create-options-from-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/common-keys.js +183 -0
- package/tsOutputs/cli-parse/config/keys/common-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/component-management-commands-keys.js +21 -0
- package/tsOutputs/cli-parse/config/keys/component-management-commands-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/config-command-keys.js +16 -0
- package/tsOutputs/cli-parse/config/keys/config-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/dry-run-command-keys.js +59 -0
- package/tsOutputs/cli-parse/config/keys/dry-run-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/end-execution-command-keys.js +9 -0
- package/tsOutputs/cli-parse/config/keys/end-execution-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/instrument-command-keys.js +146 -0
- package/tsOutputs/cli-parse/config/keys/instrument-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/nyc-report-command-keys.js +11 -0
- package/tsOutputs/cli-parse/config/keys/nyc-report-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/pr-config-command-keys.js +32 -0
- package/tsOutputs/cli-parse/config/keys/pr-config-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/scan-command-keys.js +236 -0
- package/tsOutputs/cli-parse/config/keys/scan-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/scanned-command-keys.js +16 -0
- package/tsOutputs/cli-parse/config/keys/scanned-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/start-execution-command-keys.js +9 -0
- package/tsOutputs/cli-parse/config/keys/start-execution-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/test-listener-commands-keys.js +86 -0
- package/tsOutputs/cli-parse/config/keys/test-listener-commands-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/keys/upload-reports-command-keys.js +38 -0
- package/tsOutputs/cli-parse/config/keys/upload-reports-command-keys.js.map +1 -0
- package/tsOutputs/cli-parse/config/migration/agent-config-bridge.js +44 -0
- package/tsOutputs/cli-parse/config/migration/agent-config-bridge.js.map +1 -0
- package/tsOutputs/cli-parse/config/migration/legacy-adapters.js +157 -0
- package/tsOutputs/cli-parse/config/migration/legacy-adapters.js.map +1 -0
- package/tsOutputs/cli-parse/config/schema.js +63 -0
- package/tsOutputs/cli-parse/config/schema.js.map +1 -0
- package/tsOutputs/cli-parse/config/source-adapters/base-source-adapter.js +53 -0
- package/tsOutputs/cli-parse/config/source-adapters/base-source-adapter.js.map +1 -0
- package/tsOutputs/cli-parse/config/source-adapters/cli-source-adapter.js +27 -0
- package/tsOutputs/cli-parse/config/source-adapters/cli-source-adapter.js.map +1 -0
- package/tsOutputs/cli-parse/config/source-adapters/env-source-adapter.js +27 -0
- package/tsOutputs/cli-parse/config/source-adapters/env-source-adapter.js.map +1 -0
- package/tsOutputs/cli-parse/config/source-adapters/json-file-source-adapter.js +33 -0
- package/tsOutputs/cli-parse/config/source-adapters/json-file-source-adapter.js.map +1 -0
- package/tsOutputs/cli-parse/config/source-adapters/remote-source-adapter.js +27 -0
- package/tsOutputs/cli-parse/config/source-adapters/remote-source-adapter.js.map +1 -0
- package/tsOutputs/cli-parse/config/transformers.js +13 -0
- package/tsOutputs/cli-parse/config/transformers.js.map +1 -0
- package/tsOutputs/cli-parse/config/validation-error.js +40 -0
- package/tsOutputs/cli-parse/config/validation-error.js.map +1 -0
- package/tsOutputs/cli-parse/contracts.d.ts +6 -1
- package/tsOutputs/cli-parse/contracts.js +5 -0
- package/tsOutputs/cli-parse/contracts.js.map +1 -1
- package/tsOutputs/cli-parse/custom-commander.js +2 -18
- package/tsOutputs/cli-parse/custom-commander.js.map +1 -1
- package/tsOutputs/cli-parse/executors/base-executor.js +117 -117
- package/tsOutputs/cli-parse/executors/base-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-end-executor.js +22 -24
- package/tsOutputs/cli-parse/executors/build-end-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-executor.js +73 -251
- package/tsOutputs/cli-parse/executors/build-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/config-executor.js +21 -19
- package/tsOutputs/cli-parse/executors/config-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js +18 -58
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/end-execution-executor.js +17 -14
- package/tsOutputs/cli-parse/executors/end-execution-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/instrument-executor.js +24 -93
- package/tsOutputs/cli-parse/executors/instrument-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-components-executor.js +13 -7
- package/tsOutputs/cli-parse/executors/integration-build-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-delete-components-executor.js +2 -3
- package/tsOutputs/cli-parse/executors/integration-build-delete-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-update-components-executor.js +5 -2
- package/tsOutputs/cli-parse/executors/integration-build-update-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/mocha-executor.js +25 -6
- package/tsOutputs/cli-parse/executors/mocha-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/nyc-report-executor.js +9 -12
- package/tsOutputs/cli-parse/executors/nyc-report-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/pr-config-executor.js +17 -6
- package/tsOutputs/cli-parse/executors/pr-config-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/run-executor.js +15 -15
- package/tsOutputs/cli-parse/executors/run-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/start-execution-executor.js +21 -18
- package/tsOutputs/cli-parse/executors/start-execution-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-executions-executor.js +2 -2
- package/tsOutputs/cli-parse/executors/test-executions-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-listener-executor.js +29 -40
- package/tsOutputs/cli-parse/executors/test-listener-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/upload-report-executor.js +28 -22
- package/tsOutputs/cli-parse/executors/upload-report-executor.js.map +1 -1
- package/tsOutputs/common/config-process/index.js +3 -3
- package/tsOutputs/common/config-process/index.js.map +1 -1
- package/tsOutputs/common/constants/sl-env-vars.d.ts +2 -0
- package/tsOutputs/common/constants/sl-env-vars.js +4 -0
- package/tsOutputs/common/constants/sl-env-vars.js.map +1 -1
- package/tsOutputs/common/http/backend-proxy.js +2 -2
- package/tsOutputs/common/http/backend-proxy.js.map +1 -1
- package/tsOutputs/common/http/contracts.d.ts +5 -2
- package/tsOutputs/common/http/contracts.js.map +1 -1
- package/tsOutputs/common/ignored-files-handler.d.ts +1 -1
- package/tsOutputs/common/ignored-files-handler.js +6 -1
- package/tsOutputs/common/ignored-files-handler.js.map +1 -1
- package/tsOutputs/common/utils/test-runner-build-session-data-builder.d.ts +2 -2
- package/tsOutputs/common/utils/test-runner-build-session-data-builder.js.map +1 -1
- package/tsOutputs/messages/message-keys.generated.js +1 -1
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveWithoutHash = exports.nycReport = exports.collectorUrl = exports.workspacePath = exports.testGroupId = exports.es6Modules = exports.projectRoot = exports.useBranchCoverage = exports.testStage = exports.labId = exports.buildSessionIdFileWithDefault = exports.baseKeysWithRequiredAppBranchBuild = exports.baseKeysWithAppBranchBuild = exports.baseKeys = exports.DEFAULT_NYC_REPORT_FILE_LOC = void 0;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
const schema_1 = require("../schema");
|
|
6
|
+
/** Default path for nyc report file; kept here to avoid circular dependency with NycReportExecutor. */
|
|
7
|
+
exports.DEFAULT_NYC_REPORT_FILE_LOC = (0, path_1.resolve)('.', 'coverage', 'coverage-final.json');
|
|
8
|
+
/**
|
|
9
|
+
* Reused in versions with and without default.
|
|
10
|
+
*/
|
|
11
|
+
const buildSessionIdWithNoDefaultSchemaOpts = {
|
|
12
|
+
description: 'Build Session Id File (mandatory if buildsessionid is not provided). case-sensitive.',
|
|
13
|
+
cli: {
|
|
14
|
+
commanderLowercaseKey: true,
|
|
15
|
+
},
|
|
16
|
+
env: {},
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Base keys added by createCommand() to every CLI command.
|
|
20
|
+
* Does NOT include appName/branch/build (those are in `baseKeysWithAppBranchBuild`).
|
|
21
|
+
* buildSessionIdFile has no default here; commands that need 'buildSessionId'
|
|
22
|
+
* as default override it via spread.
|
|
23
|
+
*/
|
|
24
|
+
exports.baseKeys = {
|
|
25
|
+
token: (0, schema_1.stringKey)({
|
|
26
|
+
description: 'Token (mandatory if tokenfile is not provided). case-sensitive.',
|
|
27
|
+
cli: {},
|
|
28
|
+
env: {},
|
|
29
|
+
}),
|
|
30
|
+
tokenFile: (0, schema_1.stringKey)({
|
|
31
|
+
default: 'sltoken.txt',
|
|
32
|
+
description: 'Token File (mandatory if token is not provided). case-sensitive. default: sltoken.txt',
|
|
33
|
+
cli: {
|
|
34
|
+
commanderLowercaseKey: true,
|
|
35
|
+
},
|
|
36
|
+
env: {},
|
|
37
|
+
}),
|
|
38
|
+
buildSessionId: (0, schema_1.stringKey)({
|
|
39
|
+
description: 'Build Session Id (mandatory if buildsessionidfile is not provided). case-sensitive.',
|
|
40
|
+
cli: {
|
|
41
|
+
commanderLowercaseKey: true,
|
|
42
|
+
},
|
|
43
|
+
env: {},
|
|
44
|
+
}),
|
|
45
|
+
buildSessionIdFile: (0, schema_1.stringKey)(buildSessionIdWithNoDefaultSchemaOpts),
|
|
46
|
+
failBuild: (0, schema_1.booleanKey)({
|
|
47
|
+
default: false,
|
|
48
|
+
description: 'Fail Build, Flag indicating whether or not to exit with status code 1 if command fails. Default is false',
|
|
49
|
+
cli: { names: ['failOnError', 'failBuild'], commanderLowercaseKey: true },
|
|
50
|
+
}),
|
|
51
|
+
proxy: (0, schema_1.stringKey)({
|
|
52
|
+
description: "Proxy server (optional, must be a valid URL. in the form of 'http://127.0.0.1:3333').",
|
|
53
|
+
cli: {},
|
|
54
|
+
}),
|
|
55
|
+
overrideServer: (0, schema_1.stringKey)({
|
|
56
|
+
description: 'Override server url for the agent to connect to. Sample usage: Using the Collector as a proxy.',
|
|
57
|
+
cli: {},
|
|
58
|
+
env: {},
|
|
59
|
+
remote: {},
|
|
60
|
+
sourcePriority: 'remoteFirst',
|
|
61
|
+
}),
|
|
62
|
+
skipUpgrade: (0, schema_1.booleanKey)({
|
|
63
|
+
default: false,
|
|
64
|
+
description: 'Should not try to upgrade agent',
|
|
65
|
+
cli: {
|
|
66
|
+
commanderSkipPlaceholder: true,
|
|
67
|
+
},
|
|
68
|
+
}),
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Extended base keys = base + appName/branch/build.
|
|
72
|
+
* Used by commands created with `createCommand(name, addOldParams=true, ...)`.
|
|
73
|
+
*/
|
|
74
|
+
exports.baseKeysWithAppBranchBuild = Object.assign(Object.assign({}, exports.baseKeys), { appName: (0, schema_1.stringKey)({
|
|
75
|
+
description: 'Application name. case-sensitive.',
|
|
76
|
+
cli: {
|
|
77
|
+
commanderLowercaseKey: true,
|
|
78
|
+
},
|
|
79
|
+
}), branch: (0, schema_1.stringKey)({
|
|
80
|
+
description: 'Branch name. case-sensitive.',
|
|
81
|
+
cli: { names: ['branchName', 'branch'] },
|
|
82
|
+
}), build: (0, schema_1.stringKey)({
|
|
83
|
+
description: 'Build id. Should be unique between builds. case-sensitive',
|
|
84
|
+
cli: { names: ['buildName', 'build'] },
|
|
85
|
+
}) });
|
|
86
|
+
/**
|
|
87
|
+
* Extended base keys = base + REQUIRED appName/branch/build.
|
|
88
|
+
* Used by commands created with `createCommand(name, addOldParams=true, ...)`.
|
|
89
|
+
*/
|
|
90
|
+
exports.baseKeysWithRequiredAppBranchBuild = Object.assign(Object.assign({}, exports.baseKeysWithAppBranchBuild), { appName: Object.assign(Object.assign({}, exports.baseKeysWithAppBranchBuild.appName), { required: true }), branch: Object.assign(Object.assign({}, exports.baseKeysWithAppBranchBuild.branch), { required: true }), build: Object.assign(Object.assign({}, exports.baseKeysWithAppBranchBuild.build), { required: true }) });
|
|
91
|
+
/**
|
|
92
|
+
* Override for buildSessionIdFile with default value 'buildSessionId'.
|
|
93
|
+
* Used by commands that pass `defaultBuildSessionId=true` to createCommand.
|
|
94
|
+
*/
|
|
95
|
+
exports.buildSessionIdFileWithDefault = {
|
|
96
|
+
buildSessionIdFile: (0, schema_1.stringKey)(Object.assign(Object.assign({}, buildSessionIdWithNoDefaultSchemaOpts), { default: 'buildSessionId' })),
|
|
97
|
+
};
|
|
98
|
+
// single keys used across multiple commands
|
|
99
|
+
exports.labId = {
|
|
100
|
+
labId: (0, schema_1.stringKey)({
|
|
101
|
+
description: 'Lab Id. case-sensitive.',
|
|
102
|
+
cli: { commanderLowercaseKey: true },
|
|
103
|
+
}),
|
|
104
|
+
};
|
|
105
|
+
exports.testStage = {
|
|
106
|
+
testStage: (0, schema_1.stringKey)({
|
|
107
|
+
default: 'Unit Tests',
|
|
108
|
+
description: "The tests stage (e.g 'integration tests', 'regression'). The default will be 'Unit Tests'",
|
|
109
|
+
cli: { commanderLowercaseKey: true, commanderSkipDefaultValue: true },
|
|
110
|
+
}),
|
|
111
|
+
};
|
|
112
|
+
exports.useBranchCoverage = {
|
|
113
|
+
useBranchCoverage: (0, schema_1.booleanKey)({
|
|
114
|
+
default: false,
|
|
115
|
+
description: 'Branch Coverage, Flag indicating whether or not to collect branch cover coverage. Default is false',
|
|
116
|
+
cli: {
|
|
117
|
+
commanderLowercaseKey: true,
|
|
118
|
+
commanderUseParser: true,
|
|
119
|
+
commanderOptionalPlaceholder: true,
|
|
120
|
+
},
|
|
121
|
+
remote: {},
|
|
122
|
+
sourcePriority: 'remoteFirst',
|
|
123
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
124
|
+
}),
|
|
125
|
+
};
|
|
126
|
+
exports.projectRoot = {
|
|
127
|
+
projectRoot: (0, schema_1.stringKey)({
|
|
128
|
+
description: 'Determine the root directory of project, default is current working directory',
|
|
129
|
+
cli: { names: ['projectRoot', 'p'] },
|
|
130
|
+
}),
|
|
131
|
+
};
|
|
132
|
+
exports.es6Modules = {
|
|
133
|
+
es6Modules: (0, schema_1.booleanKey)({
|
|
134
|
+
default: false,
|
|
135
|
+
description: 'Handle ES6 modules during scan or run.',
|
|
136
|
+
cli: { commanderSkipPlaceholder: true },
|
|
137
|
+
}),
|
|
138
|
+
};
|
|
139
|
+
exports.testGroupId = {
|
|
140
|
+
testGroupId: (0, schema_1.stringKey)({
|
|
141
|
+
description: 'Test-group Id. case-sensitive.',
|
|
142
|
+
cli: { commanderLowercaseKey: true },
|
|
143
|
+
}),
|
|
144
|
+
};
|
|
145
|
+
exports.workspacePath = {
|
|
146
|
+
workspacePath: (0, schema_1.stringKey)({
|
|
147
|
+
description: 'Path to the workspace where the source code exists',
|
|
148
|
+
cli: {
|
|
149
|
+
names: [
|
|
150
|
+
'scanDir',
|
|
151
|
+
'w',
|
|
152
|
+
'workspacePath',
|
|
153
|
+
'distFolderPath',
|
|
154
|
+
'distPath',
|
|
155
|
+
'distributablePath',
|
|
156
|
+
],
|
|
157
|
+
commanderLowercaseKey: true,
|
|
158
|
+
},
|
|
159
|
+
}),
|
|
160
|
+
};
|
|
161
|
+
exports.collectorUrl = {
|
|
162
|
+
collectorUrl: (0, schema_1.stringKey)({
|
|
163
|
+
description: 'The url to Sealights collector will be used to collect footprints from browser environment',
|
|
164
|
+
cli: {},
|
|
165
|
+
// preload script looks for SL_collectorUrl env var, but it's not used in executors
|
|
166
|
+
// so we don't populate this one from env
|
|
167
|
+
}),
|
|
168
|
+
};
|
|
169
|
+
exports.nycReport = {
|
|
170
|
+
report: (0, schema_1.stringKey)({
|
|
171
|
+
default: exports.DEFAULT_NYC_REPORT_FILE_LOC,
|
|
172
|
+
description: 'Path to the relevant nyc json report. This command needs an open execution to work. Passing a test-stage using the --teststage will automatically open an execution.',
|
|
173
|
+
cli: {},
|
|
174
|
+
}),
|
|
175
|
+
};
|
|
176
|
+
exports.resolveWithoutHash = {
|
|
177
|
+
resolveWithoutHash: (0, schema_1.booleanKey)({
|
|
178
|
+
default: true,
|
|
179
|
+
description: 'resolveWithoutHash. Default is true.',
|
|
180
|
+
cli: { commanderUseParser: true, commanderOptionalPlaceholder: true },
|
|
181
|
+
}),
|
|
182
|
+
};
|
|
183
|
+
//# sourceMappingURL=common-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common-keys.js","sourceRoot":"","sources":["../../../../cli-parse/config/keys/common-keys.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,sCAAkE;AAElE,uGAAuG;AAC1F,QAAA,2BAA2B,GAAG,IAAA,cAAO,EAChD,GAAG,EACH,UAAU,EACV,qBAAqB,C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AY,EAAE,IAAA,kBAAS,EAAC;QACtB,WAAW,EACT,4FAA4F;QAC9F,GAAG,EAAE,EAAE;QACP,mFAAmF;QACnF,yCAAyC;KAC1C,CAAC;CACH,CAAC;AAEW,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE,IAAA,kBAAS,EAAC;QAChB,OAAO,EAAE,mCAA2B;QACpC,WAAW,EACT,sKAAsK;QACxK,GAAG,EAAE,EAAE;KACR,CAAC;CACH,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,IAAA,mBAAU,EAAC;QAC7B,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,sCAAsC;QACnD,GAAG,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,4BAA4B,EAAE,IAAI,EAAE;KACtE,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentDeleteCommandKeys = exports.componentUpdateCommandKeys = void 0;
|
|
4
|
+
const schema_1 = require("../schema");
|
|
5
|
+
const common_keys_1 = require("./common-keys");
|
|
6
|
+
const componentManagementCommonKeys = Object.assign(Object.assign({}, common_keys_1.baseKeysWithAppBranchBuild), { componentIds: (0, schema_1.stringArrayKey)({
|
|
7
|
+
description: 'a list of comma-separated components bsids',
|
|
8
|
+
cli: { commanderUseParser: true },
|
|
9
|
+
}), componentFile: (0, schema_1.stringKey)({
|
|
10
|
+
description: 'A path to a json file that is in the following format: [{"appname":"","branch":"","build":"","buildSessionId":""},{...}]. Every entry may include appName+branch+build OR buildSessionID',
|
|
11
|
+
cli: {},
|
|
12
|
+
}) });
|
|
13
|
+
/**
|
|
14
|
+
* Config keys for the `componentUpdate` CLI command.
|
|
15
|
+
*/
|
|
16
|
+
exports.componentUpdateCommandKeys = Object.assign({}, componentManagementCommonKeys);
|
|
17
|
+
/**
|
|
18
|
+
* Config keys for the `componentDelete` CLI command.
|
|
19
|
+
*/
|
|
20
|
+
exports.componentDeleteCommandKeys = Object.assign({}, componentManagementCommonKeys);
|
|
21
|
+
//# sourceMappingURL=component-management-commands-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-management-commands-keys.js","sourceRoot":"","sources":["../../../../cli-parse/config/keys/component-management-commands-keys.ts"],"names":[],"mappings":";;;AAAA,sCAAmE;AACnE,+CAA2D;AAE3D,MAAM,6BAA6B,mCAC9B,wCAA0B,KAE7B,YAAY,EAAE,IAAA,uBAAc,EAAC;QAC3B,WAAW,EAAE,4CAA4C;QACzD,GAAG,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE;KAClC,CAAC,EACF,aAAa,EAAE,IAAA,kBAAS,EAAC;QACvB,WAAW,EACT,0LAA0L;QAC5L,GAAG,EAAE,EAAE;KACR,CAAC,GACH,CAAC;AAEF;;GAEG;AACU,QAAA,0BAA0B,qBAAQ,6BAA6B,EAAG;AAM/E;;GAEG;AACU,QAAA,0BAA0B,qBAAQ,6BAA6B,EAAG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.configCommandKeys = void 0;
|
|
4
|
+
const schema_1 = require("../schema");
|
|
5
|
+
const common_keys_1 = require("./common-keys");
|
|
6
|
+
/**
|
|
7
|
+
* Config keys for the `config` CLI command.
|
|
8
|
+
*/
|
|
9
|
+
exports.configCommandKeys = Object.assign(Object.assign({}, common_keys_1.baseKeysWithRequiredAppBranchBuild), { beControlledVersions: (0, schema_1.booleanKey)({
|
|
10
|
+
default: false,
|
|
11
|
+
description: 'Update the version according to the BE defined version (default: false)',
|
|
12
|
+
cli: { commanderSkipPlaceholder: true },
|
|
13
|
+
env: {},
|
|
14
|
+
skipKey: true,
|
|
15
|
+
}) });
|
|
16
|
+
//# sourceMappingURL=config-command-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-command-keys.js","sourceRoot":"","sources":["../../../../cli-parse/config/keys/config-command-keys.ts"],"names":[],"mappings":";;;AAAA,sCAAoD;AACpD,+CAAmE;AAEnE;;GAEG;AACU,QAAA,iBAAiB,mCACzB,gDAAkC,KAErC,oBAAoB,EAAE,IAAA,mBAAU,EAAC;QAC/B,OAAO,EAAE,KAAK;QACd,WAAW,EACT,yEAAyE;QAC3E,GAAG,EAAE,EAAE,wBAAwB,EAAE,IAAI,EAAE;QACvC,GAAG,EAAE,EAAE;QACP,OAAO,EAAE,IAAI;KACd,CAAC,IACF"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dryRunCommandKeys = void 0;
|
|
4
|
+
const schema_1 = require("../schema");
|
|
5
|
+
const scan_command_keys_1 = require("./scan-command-keys");
|
|
6
|
+
const common_keys_1 = require("./common-keys");
|
|
7
|
+
const common_1 = require("../../../common");
|
|
8
|
+
/**
|
|
9
|
+
* Config keys for the `dryRun` CLI command.
|
|
10
|
+
*/
|
|
11
|
+
exports.dryRunCommandKeys = Object.assign(Object.assign(Object.assign(Object.assign({}, scan_command_keys_1.commonScanKeys), {
|
|
12
|
+
// todo overwritten from commonScanKeys - different CLI behavior
|
|
13
|
+
scm: (0, schema_1.stringKey)({
|
|
14
|
+
default: 'none',
|
|
15
|
+
description: "The Source Control Management used (currently only 'git' is supported)",
|
|
16
|
+
cli: {},
|
|
17
|
+
}),
|
|
18
|
+
// dryRun-only keys
|
|
19
|
+
buildScanProjectRoot: (0, schema_1.stringKey)({
|
|
20
|
+
description: 'Determine the root directory of project, default is current working directory applied for build scanner',
|
|
21
|
+
cli: {},
|
|
22
|
+
}), nycProjectRoot: (0, schema_1.stringKey)({
|
|
23
|
+
description: 'Determine the root directory of project, default is current working directory applied for nycReport',
|
|
24
|
+
cli: {},
|
|
25
|
+
}), folderDepth: (0, schema_1.numberKey)({
|
|
26
|
+
default: 3,
|
|
27
|
+
description: 'Folder depth for printing unique ids in dry run command, default is 3',
|
|
28
|
+
cli: {},
|
|
29
|
+
}), verbose: (0, schema_1.booleanKey)({
|
|
30
|
+
default: false,
|
|
31
|
+
description: 'Show verbose output',
|
|
32
|
+
cli: { commanderSkipPlaceholder: true },
|
|
33
|
+
}), hasNycReport: (0, schema_1.booleanKey)({
|
|
34
|
+
default: false,
|
|
35
|
+
description: 'Should parse nyc coverage report, default is false',
|
|
36
|
+
cli: { commanderSkipPlaceholder: true },
|
|
37
|
+
}) }), common_keys_1.nycReport), {
|
|
38
|
+
// todo overwritten fields
|
|
39
|
+
overrideServer: (0, schema_1.stringKey)({
|
|
40
|
+
description: 'Override server url for the agent to connect to. Sample usage: Using the Collector as a proxy.',
|
|
41
|
+
cli: {},
|
|
42
|
+
}), toggleBasedBrowserInstrumentation: (0, schema_1.booleanKey)({
|
|
43
|
+
default: false,
|
|
44
|
+
description: 'Once enabled the browser agent will create separate instrumented files and keep the original files intact. If the preamble file is not found, the original files will be loaded in the browser.',
|
|
45
|
+
cli: { commanderSkipPlaceholder: true },
|
|
46
|
+
env: {},
|
|
47
|
+
remote: {},
|
|
48
|
+
}), splitPreambleIntoFile: (0, schema_1.booleanKey)({
|
|
49
|
+
default: false,
|
|
50
|
+
description: 'Move the instrumentation config to a separate file, this requires the file to be available through the CDN.',
|
|
51
|
+
cli: { commanderSkipPlaceholder: true },
|
|
52
|
+
env: {},
|
|
53
|
+
remote: {},
|
|
54
|
+
}), footprintsMapping: (0, schema_1.enumKey)({
|
|
55
|
+
default: common_1.FootprintsMapping.AGENT,
|
|
56
|
+
description: "Determine where browser footprint will be resolved against sl-mapping, options are: 'agent', 'server'. Default is 'agent'.",
|
|
57
|
+
cli: { commanderSkipDefaultValue: true },
|
|
58
|
+
}) });
|
|
59
|
+
//# sourceMappingURL=dry-run-command-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dry-run-command-keys.js","s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M,EAAE,EAAE;KACX,CAAC,EACF,qBAAqB,EAAE,IAAA,mBAAU,EAAC;QAChC,OAAO,EAAE,KAAK;QACd,WAAW,EACT,6GAA6G;QAC/G,GAAG,EAAE,EAAE,wBAAwB,EAAE,IAAI,EAAE;QACvC,GAAG,EAAE,EAAE;QACP,MAAM,EAAE,EAAE;KACX,CAAC,EACF,iBAAiB,EAAE,IAAA,gBAAO,EAAoB;QAC5C,OAAO,EAAE,0BAAiB,CAAC,KAAK;QAChC,WAAW,EACT,4HAA4H;QAC9H,GAAG,EAAE,EAAE,yBAAyB,EAAE,IAAI,EAAE;KACzC,CAAC,IACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.endExecutionCommandKeys = void 0;
|
|
4
|
+
const common_keys_1 = require("./common-keys");
|
|
5
|
+
/**
|
|
6
|
+
* Config keys for the `end` (endExecution) CLI command.
|
|
7
|
+
*/
|
|
8
|
+
exports.endExecutionCommandKeys = Object.assign(Object.assign({}, common_keys_1.baseKeysWithAppBranchBuild), common_keys_1.labId);
|
|
9
|
+
//# sourceMappingURL=end-execution-command-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"end-execution-command-keys.js","sourceRoot":"","sources":["../../../../cli-parse/config/keys/end-execution-command-keys.ts"],"names":[],"mappings":";;;AACA,+CAAkE;AAElE;;GAEG;AACU,QAAA,uBAAuB,mCAC/B,wCAA0B,GAC1B,mBAAK,EACR"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.instrumentCommandKeys = exports.commonScanInstrumentKeys = exports.commonInstrumentKeys = void 0;
|
|
4
|
+
const schema_1 = require("../schema");
|
|
5
|
+
const common_keys_1 = require("./common-keys");
|
|
6
|
+
const common_1 = require("../../../common");
|
|
7
|
+
/**
|
|
8
|
+
* Keys common for instrument, scan and dryRun.
|
|
9
|
+
*/
|
|
10
|
+
exports.commonInstrumentKeys = Object.assign(Object.assign(Object.assign(Object.assign({}, common_keys_1.workspacePath), { outputPath: (0, schema_1.stringKey)({
|
|
11
|
+
description: 'outputpath',
|
|
12
|
+
cli: { names: ['outputPath', 'o'], commanderLowercaseKey: true },
|
|
13
|
+
}) }), common_keys_1.es6Modules), { ctxPropagationOnly: (0, schema_1.booleanKey)({
|
|
14
|
+
default: false,
|
|
15
|
+
description: 'Enable only context propagation without performing any additional browser agent instrumentation',
|
|
16
|
+
cli: { commanderSkipPlaceholder: true },
|
|
17
|
+
env: {},
|
|
18
|
+
remote: {},
|
|
19
|
+
sourcePriority: 'remoteFirst',
|
|
20
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
21
|
+
}), babylonPlugins: (0, schema_1.stringArrayKey)({
|
|
22
|
+
description: 'List of non default babylon parser plugins, separated by comma.',
|
|
23
|
+
cli: { commanderUseParser: true },
|
|
24
|
+
}), splitPreambleIntoFile: (0, schema_1.booleanKey)({
|
|
25
|
+
default: false,
|
|
26
|
+
description: 'Move the instrumentation config to a separate file, this requires the file to be available through the CDN.',
|
|
27
|
+
cli: { commanderSkipPlaceholder: true },
|
|
28
|
+
env: {},
|
|
29
|
+
remote: {},
|
|
30
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
31
|
+
}), preambleFileName: (0, schema_1.stringKey)({
|
|
32
|
+
default: 'sl-preamble-config.js',
|
|
33
|
+
description: 'Used together with splitPreambleIntoFile to define a custom name (default: sl-preamble-config.js)',
|
|
34
|
+
cli: { commanderSkipDefaultValue: true },
|
|
35
|
+
env: {},
|
|
36
|
+
remote: {},
|
|
37
|
+
}), preambleFileUrl: (0, schema_1.stringKey)({
|
|
38
|
+
default: '',
|
|
39
|
+
description: `Used together with preambleFileName to define a custom url (default: "" which equals to root,
|
|
40
|
+
you can pass like https://example.com/a/b/c or relative like a/b/c).
|
|
41
|
+
** Important: Only use this if you need a different server than the one used for the instrumented files,
|
|
42
|
+
** Important: actual url will be {preambleFileUrl}/{preambleFileName}`,
|
|
43
|
+
cli: { commanderSkipDefaultValue: true },
|
|
44
|
+
env: {},
|
|
45
|
+
remote: {},
|
|
46
|
+
}), toggleBasedBrowserInstrumentation: (0, schema_1.booleanKey)({
|
|
47
|
+
default: false,
|
|
48
|
+
description: 'Once enabled the browser agent will create separate instrumented files and keep the original files intact. If the preamble file is not found, the original files will be loaded in the browser.',
|
|
49
|
+
cli: { commanderSkipPlaceholder: true },
|
|
50
|
+
env: {},
|
|
51
|
+
remote: {},
|
|
52
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
53
|
+
}), allowedDomains: (0, schema_1.stringArrayKey)({
|
|
54
|
+
default: [],
|
|
55
|
+
description: 'Comma-separated list of domains. If provided, the agent in instrumented will be loaded only on domains specified in the list. If empty string is passed, this option is disabled and agent is loaded for all domains (can be used to overwrite env var or remote config). In scan and dryRun commands --instrumentForBrowsers must be used for this to take effect.',
|
|
56
|
+
cli: { commanderSkipDefaultValue: true },
|
|
57
|
+
env: {},
|
|
58
|
+
remote: {},
|
|
59
|
+
}), footprintsMapping: (0, schema_1.enumKey)({
|
|
60
|
+
default: common_1.FootprintsMapping.AGENT,
|
|
61
|
+
description: "Determine where browser footprint will be resolved against sl-mapping, options are: 'agent', 'server'. Default is 'agent'.",
|
|
62
|
+
cli: {},
|
|
63
|
+
}) });
|
|
64
|
+
/**
|
|
65
|
+
* Keys common for instrument and scan.
|
|
66
|
+
*/
|
|
67
|
+
exports.commonScanInstrumentKeys = Object.assign(Object.assign(Object.assign(Object.assign({ delayShutdownInSeconds: (0, schema_1.numberKey)({
|
|
68
|
+
description: 'Shutdown time in seconds for the browser agent. Default is 30 seconds.',
|
|
69
|
+
cli: { commanderUseParser: true },
|
|
70
|
+
}) }, common_keys_1.projectRoot), common_keys_1.labId), common_keys_1.collectorUrl), { enableOpenTelemetry: (0, schema_1.booleanKey)({
|
|
71
|
+
default: false,
|
|
72
|
+
description: 'Enable open-telemetry instrumentation when working with the browser test listener. Defaults to false.',
|
|
73
|
+
cli: { commanderSkipPlaceholder: true },
|
|
74
|
+
}), allowCORS: (0, schema_1.stringKey)({
|
|
75
|
+
description: 'Comma separated origins (* to enable propagation everywhere) to which headers should be propagated on each outgoing Fetch/XHR call. Defaults to current origin only, enableOpenTelemetry must be true for this option.',
|
|
76
|
+
cli: {},
|
|
77
|
+
}), excludeTokenFromBrowserConfig: (0, schema_1.booleanKey)({
|
|
78
|
+
default: false,
|
|
79
|
+
description: 'Exclude the browser agent token from the browser configuration file.',
|
|
80
|
+
cli: { commanderSkipPlaceholder: true },
|
|
81
|
+
env: { name: 'SL_ExcludeTokenFromBrowserConfig' },
|
|
82
|
+
remote: {},
|
|
83
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
84
|
+
}), removeSensitiveData: (0, schema_1.booleanKey)({
|
|
85
|
+
default: false,
|
|
86
|
+
description: 'Remove sensitive data from build mapping',
|
|
87
|
+
sourcePriority: 'remoteFirst',
|
|
88
|
+
remote: {},
|
|
89
|
+
}) });
|
|
90
|
+
/**
|
|
91
|
+
* Config keys for the `instrument` CLI command.
|
|
92
|
+
*
|
|
93
|
+
* Instrument uses createCommand(name, false, true) — no appName/branch/build,
|
|
94
|
+
* but buildSessionIdFile gets default 'buildSessionId'.
|
|
95
|
+
*
|
|
96
|
+
* sourcePriority per key matches InstrumentExecutor.applyRemoteConfig().
|
|
97
|
+
*/
|
|
98
|
+
exports.instrumentCommandKeys = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, common_keys_1.baseKeys), common_keys_1.buildSessionIdFileWithDefault), exports.commonInstrumentKeys), exports.commonScanInstrumentKeys), {
|
|
99
|
+
// todo overwritten from commonScanKeys - different CLI behavior
|
|
100
|
+
workspacePath: (0, schema_1.stringKey)({
|
|
101
|
+
description: 'Path to the workspace where the source code exists',
|
|
102
|
+
cli: {
|
|
103
|
+
names: ['workspacePath', 'w'],
|
|
104
|
+
},
|
|
105
|
+
}), distFolderPath: (0, schema_1.stringKey)({
|
|
106
|
+
description: 'Path to the workspace where the source code exists',
|
|
107
|
+
cli: {
|
|
108
|
+
names: ['distFolderPath', 'distPath', 'distributablePath'],
|
|
109
|
+
commanderLowercaseKey: true,
|
|
110
|
+
},
|
|
111
|
+
}), excludeTokenFromBrowserConfig: (0, schema_1.booleanKey)({
|
|
112
|
+
default: false,
|
|
113
|
+
description: 'Exclude the browser agent token from the browser configuration file.',
|
|
114
|
+
cli: { commanderSkipDefaultValue: true, commanderSkipPlaceholder: true },
|
|
115
|
+
env: { name: 'SL_ExcludeTokenFromBrowserConfig' },
|
|
116
|
+
remote: {},
|
|
117
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
118
|
+
}), outputPath: (0, schema_1.stringKey)({
|
|
119
|
+
description: 'outputpath',
|
|
120
|
+
cli: { names: ['outputPath', 'o'] },
|
|
121
|
+
}), es6Modules: (0, schema_1.booleanKey)({
|
|
122
|
+
default: false,
|
|
123
|
+
description: 'Handle ES6 modules during scan or run.',
|
|
124
|
+
cli: {
|
|
125
|
+
commanderSkipPlaceholder: true,
|
|
126
|
+
commanderSkipDefaultValue: true,
|
|
127
|
+
},
|
|
128
|
+
}), enableOpenTelemetry: (0, schema_1.booleanKey)({
|
|
129
|
+
default: false,
|
|
130
|
+
description: 'Enable open-telemetry instrumentation when working with the browser test listener. Defaults to false.',
|
|
131
|
+
cli: {
|
|
132
|
+
commanderSkipDefaultValue: true,
|
|
133
|
+
commanderSkipPlaceholder: true,
|
|
134
|
+
},
|
|
135
|
+
}), reduceInstrumentedFileSize: (0, schema_1.booleanKey)({
|
|
136
|
+
description: 'Optimize instrumented file size',
|
|
137
|
+
cli: {
|
|
138
|
+
negate: true,
|
|
139
|
+
commanderSkipPlaceholder: true,
|
|
140
|
+
names: ['reduceFileSize'],
|
|
141
|
+
},
|
|
142
|
+
env: {},
|
|
143
|
+
remote: {},
|
|
144
|
+
reproduceInvalidResolutionBasedOnValue: true,
|
|
145
|
+
}) });
|
|
146
|
+
//# sourceMappingURL=instrument-command-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instrument-command-keys.js","sourceRoot":"","sources":["../../../../cli-parse/config/keys/instrument-command-keys.ts"],"names":[],"mappings":";;;AAAA,sCAOmB;AACnB,+CAQuB;AACvB,4CAAoD;AAEpD;;GAEG;AACU,QAAA,oBAAoB,+DAC5B,2BAAa,KAChB,UAAU,EAAE,IAAA,kBAAS,EAAC;QACpB,WAAW,EAAE,YAAY;QACzB,GAAG,EAAE,EAAE,KAAK,EAAE,CAAC,YAAY,EAAE,GAAG,CAAC,EAAE,qBAAqB,EAAE,IAAI,EAAE;KACjE,CAAC,KACC,wBAAU,KACb,kBAAkB,EAAE,IAAA,mBAAU,EAAC;QAC7B,OAAO,EAAE,KAAK;QACd,WAAW,EACT,iGAAiG;QACnG,GAAG,EAAE,EAAE,wBAAwB,EAAE,IAAI,EAAE;QACvC,GAAG,EAAE,EAAE;QACP,MAAM,EAAE,EAAE;QACV,cAAc,EAAE,aAAa;QAC7B,sCAAsC,EAAE,IAAI;KAC7C,CAAC,EACF,cAAc,EAAE,IAAA,uBAAc,EAAC;QAC7B,WAAW,EACT,iEAAiE;QACnE,GAAG,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE;KAClC,CAAC,EACF,qBAAqB,EAAE,IAAA,mBAAU,EAAC;QAChC,OAAO,EAAE,KAAK;QACd,WAAW,EACT,6GAA6G;QAC/G,GAAG,EAAE,EAAE,wBAAwB,EAAE,IAAI,EAAE;QACvC,GAAG,EAAE,EAAE;QACP,MAAM,EAAE,EAAE;QACV,sCAAsC,EAAE,IAAI;KAC7C,CAAC,EACF,gBAAgB,EAAE,IAAA,kBAAS,EAAC;QAC1B,OAAO,EAAE,uBAAuB;QAChC,WAAW,EACT,mGAAmG;QACrG,GAAG,EAAE,EAAE,yBAAyB,EAAE,IAAI,EAAE;QACxC,GAAG,EAAE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,KAAK,EAAE,CAAC,YAAY,EAAE,GAAG,CAAC,EAAE;KACpC,CAAC,EACF,UAAU,EAAE,IAAA,mBAAU,EAAC;QACrB,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,wCAAwC;QACrD,GAAG,EAAE;YACH,wBAAwB,EAAE,IAAI;YAC9B,yBAAyB,EAAE,IAAI;SAChC;KACF,CAAC,EACF,mBAAmB,EAAE,IAAA,mBAAU,EAAC;QAC9B,OAAO,EAAE,KAAK;QACd,WAAW,EACT,uGAAuG;QACzG,GAAG,EAAE;YACH,yBAAyB,EAAE,IAAI;YAC/B,wBAAwB,EAAE,IAAI;SAC/B;KACF,CAAC,EACF,0BAA0B,EAAE,IAAA,mBAAU,EAAC;QACrC,WAAW,EAAE,iCAAiC;QAC9C,GAAG,EAAE;YACH,MAAM,EAAE,IAAI;YACZ,wBAAwB,EAAE,IAAI;YAC9B,KAAK,EAAE,CAAC,gBAAgB,CAAC;SAC1B;QACD,GAAG,EAAE,EAAE;QACP,MAAM,EAAE,EAAE;QACV,sCAAsC,EAAE,IAAI;KAC7C,CAAC,IACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.nycReportCommandKeys = void 0;
|
|
4
|
+
const common_keys_1 = require("./common-keys");
|
|
5
|
+
/**
|
|
6
|
+
* Config keys for the `nycReport` CLI command.
|
|
7
|
+
*
|
|
8
|
+
* Uses extended base keys (with appName/branch/build) + default buildSessionIdFile.
|
|
9
|
+
*/
|
|
10
|
+
exports.nycReportCommandKeys = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, common_keys_1.baseKeysWithAppBranchBuild), common_keys_1.buildSessionIdFileWithDefault), common_keys_1.labId), common_keys_1.nycReport), common_keys_1.projectRoot), common_keys_1.testStage);
|
|
11
|
+
//# sourceMappingURL=nyc-report-command-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nyc-report-command-keys.js","sourceRoot":"","sources":["../../../../cli-parse/config/keys/nyc-report-command-keys.ts"],"names":[],"mappings":";;;AACA,+CAOuB;AAEvB;;;;GAIG;AACU,QAAA,oBAAoB,2FAC5B,wCAA0B,GAC1B,2CAA6B,GAE7B,mBAAK,GACL,uBAAS,GACT,yBAAW,GACX,uBAAS,EACZ"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.prConfigCommandKeys = void 0;
|
|
4
|
+
const schema_1 = require("../schema");
|
|
5
|
+
const common_keys_1 = require("./common-keys");
|
|
6
|
+
/**
|
|
7
|
+
* Config keys for the `prConfig` CLI command.
|
|
8
|
+
*/
|
|
9
|
+
exports.prConfigCommandKeys = Object.assign(Object.assign({}, common_keys_1.baseKeysWithRequiredAppBranchBuild), { targetBranch: (0, schema_1.stringKey)({
|
|
10
|
+
description: 'Target branch of the pull request',
|
|
11
|
+
required: true,
|
|
12
|
+
cli: {},
|
|
13
|
+
}), latestCommit: (0, schema_1.stringKey)({
|
|
14
|
+
description: 'Head SHA of the pull request source',
|
|
15
|
+
required: true,
|
|
16
|
+
cli: {},
|
|
17
|
+
}), pullRequestNumber: (0, schema_1.numberKey)({
|
|
18
|
+
description: 'Pull request number',
|
|
19
|
+
required: true,
|
|
20
|
+
cli: {},
|
|
21
|
+
}), repositoryUrl: (0, schema_1.stringKey)({
|
|
22
|
+
description: 'Repository url of the target branch',
|
|
23
|
+
required: true,
|
|
24
|
+
cli: {},
|
|
25
|
+
}),
|
|
26
|
+
// to satisfy PrConfigExecutor being derived from ConfigExecutor
|
|
27
|
+
beControlledVersions: (0, schema_1.booleanKey)({
|
|
28
|
+
default: false,
|
|
29
|
+
description: 'Update the version according to the BE defined version (default: false)',
|
|
30
|
+
skipKey: true,
|
|
31
|
+
}) });
|
|
32
|
+
//# sourceMappingURL=pr-config-command-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pr-config-command-keys.js","sourceRoot":"","sources":["../../../../cli-parse/config/keys/pr-config-command-keys.ts"],"names":[],"mappings":";;;AAAA,sCAA0E;AAC1E,+CAAmE;AAEnE;;GAEG;AACU,QAAA,mBAAmB,mCAC3B,gDAAkC,KAErC,YAAY,EAAE,IAAA,kBAAS,EAAC;QACtB,WAAW,EAAE,mCAAmC;QAChD,QAAQ,EAAE,IAAI;QACd,GAAG,EAAE,EAAE;KACR,CAAC,EACF,YAAY,EAAE,IAAA,kBAAS,EAAC;QACtB,WAAW,EAAE,qCAAqC;QAClD,QAAQ,EAAE,IAAI;QACd,GAAG,EAAE,EAAE;KACR,CAAC,EACF,iBAAiB,EAAE,IAAA,kBAAS,EAAC;QAC3B,WAAW,EAAE,qBAAqB;QAClC,QAAQ,EAAE,IAAI;QACd,GAAG,EAAE,EAAE;KACR,CAAC,EACF,aAAa,EAAE,IAAA,kBAAS,EAAC;QACvB,WAAW,EAAE,qCAAqC;QAClD,QAAQ,EAAE,IAAI;QACd,GAAG,EAAE,EAAE;KACR,CAAC;IAEF,gEAAgE;IAChE,oBAAoB,EAAE,IAAA,mBAAU,EAAC;QAC/B,OAAO,EAAE,KAAK;QACd,WAAW,EACT,yEAAyE;QAC3E,OAAO,EAAE,IAAI;KACd,CAAC,IACF"}
|