appium 3.2.1 → 3.3.0
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/build/lib/cli/args.d.ts +16 -12
- package/build/lib/cli/args.d.ts.map +1 -1
- package/build/lib/cli/args.js +15 -35
- package/build/lib/cli/args.js.map +1 -1
- package/build/lib/cli/driver-command.d.ts +51 -93
- package/build/lib/cli/driver-command.d.ts.map +1 -1
- package/build/lib/cli/driver-command.js +11 -66
- package/build/lib/cli/driver-command.js.map +1 -1
- package/build/lib/cli/extension-command.d.ts +211 -415
- package/build/lib/cli/extension-command.d.ts.map +1 -1
- package/build/lib/cli/extension-command.js +384 -653
- package/build/lib/cli/extension-command.js.map +1 -1
- package/build/lib/cli/extension.d.ts +11 -16
- package/build/lib/cli/extension.d.ts.map +1 -1
- package/build/lib/cli/extension.js +10 -28
- package/build/lib/cli/extension.js.map +1 -1
- package/build/lib/cli/parser.d.ts +40 -69
- package/build/lib/cli/parser.d.ts.map +1 -1
- package/build/lib/cli/parser.js +24 -59
- package/build/lib/cli/parser.js.map +1 -1
- package/build/lib/cli/plugin-command.d.ts +50 -90
- package/build/lib/cli/plugin-command.d.ts.map +1 -1
- package/build/lib/cli/plugin-command.js +11 -63
- package/build/lib/cli/plugin-command.js.map +1 -1
- package/build/lib/cli/setup-command.d.ts +21 -26
- package/build/lib/cli/setup-command.d.ts.map +1 -1
- package/build/lib/cli/setup-command.js +13 -55
- package/build/lib/cli/setup-command.js.map +1 -1
- package/build/lib/cli/utils.d.ts +27 -29
- package/build/lib/cli/utils.d.ts.map +1 -1
- package/build/lib/cli/utils.js +29 -31
- package/build/lib/cli/utils.js.map +1 -1
- package/build/lib/config-file.d.ts +24 -67
- package/build/lib/config-file.d.ts.map +1 -1
- package/build/lib/config-file.js +56 -115
- package/build/lib/config-file.js.map +1 -1
- package/build/lib/config.d.ts +42 -44
- package/build/lib/config.d.ts.map +1 -1
- package/build/lib/config.js +75 -107
- package/build/lib/config.js.map +1 -1
- package/build/lib/constants.d.ts +23 -23
- package/build/lib/constants.d.ts.map +1 -1
- package/build/lib/constants.js +10 -15
- package/build/lib/constants.js.map +1 -1
- package/build/lib/doctor/doctor.d.ts +40 -57
- package/build/lib/doctor/doctor.d.ts.map +1 -1
- package/build/lib/doctor/doctor.js +29 -60
- package/build/lib/doctor/doctor.js.map +1 -1
- package/build/lib/grid-register.d.ts +32 -7
- package/build/lib/grid-register.d.ts.map +1 -1
- package/build/lib/grid-register.js +84 -48
- package/build/lib/grid-register.js.map +1 -1
- package/build/lib/logsink.d.ts +13 -22
- package/build/lib/logsink.d.ts.map +1 -1
- package/build/lib/logsink.js +48 -103
- package/build/lib/logsink.js.map +1 -1
- package/build/lib/main.js +1 -1
- package/build/lib/main.js.map +1 -1
- package/build/lib/schema/arg-spec.d.ts +32 -107
- package/build/lib/schema/arg-spec.d.ts.map +1 -1
- package/build/lib/schema/arg-spec.js +11 -107
- package/build/lib/schema/arg-spec.js.map +1 -1
- package/build/lib/schema/cli-args.d.ts +3 -15
- package/build/lib/schema/cli-args.d.ts.map +1 -1
- package/build/lib/schema/cli-args.js +15 -105
- package/build/lib/schema/cli-args.js.map +1 -1
- package/build/lib/schema/cli-transformers.d.ts +15 -12
- package/build/lib/schema/cli-transformers.d.ts.map +1 -1
- package/build/lib/schema/cli-transformers.js +15 -45
- package/build/lib/schema/cli-transformers.js.map +1 -1
- package/build/lib/schema/index.d.ts +2 -2
- package/build/lib/schema/index.d.ts.map +1 -1
- package/build/lib/schema/index.js.map +1 -1
- package/build/lib/schema/keywords.d.ts +12 -20
- package/build/lib/schema/keywords.d.ts.map +1 -1
- package/build/lib/schema/keywords.js +6 -51
- package/build/lib/schema/keywords.js.map +1 -1
- package/build/lib/schema/schema.d.ts +106 -231
- package/build/lib/schema/schema.d.ts.map +1 -1
- package/build/lib/schema/schema.js +75 -345
- package/build/lib/schema/schema.js.map +1 -1
- package/build/lib/utils.d.ts +59 -238
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js +55 -207
- package/build/lib/utils.js.map +1 -1
- package/lib/cli/{args.js → args.ts} +40 -51
- package/lib/cli/driver-command.ts +122 -0
- package/lib/cli/{extension-command.js → extension-command.ts} +610 -689
- package/lib/cli/extension.ts +65 -0
- package/lib/cli/{parser.js → parser.ts} +48 -71
- package/lib/cli/plugin-command.ts +117 -0
- package/lib/cli/{setup-command.js → setup-command.ts} +57 -72
- package/lib/cli/utils.ts +97 -0
- package/lib/config-file.ts +212 -0
- package/lib/{config.js → config.ts} +129 -141
- package/lib/{constants.js → constants.ts} +30 -41
- package/lib/doctor/{doctor.js → doctor.ts} +81 -91
- package/lib/grid-register.ts +250 -0
- package/lib/{logsink.js → logsink.ts} +91 -137
- package/lib/main.js +1 -1
- package/lib/schema/arg-spec.ts +131 -0
- package/lib/schema/cli-args.ts +171 -0
- package/lib/schema/cli-transformers.ts +83 -0
- package/lib/schema/keywords.ts +96 -0
- package/lib/schema/schema.ts +449 -0
- package/lib/utils.ts +404 -0
- package/package.json +19 -20
- package/tsconfig.json +1 -1
- package/build/package.json +0 -99
- package/lib/cli/driver-command.js +0 -174
- package/lib/cli/extension.js +0 -74
- package/lib/cli/plugin-command.js +0 -164
- package/lib/cli/utils.js +0 -91
- package/lib/config-file.js +0 -228
- package/lib/grid-register.js +0 -146
- package/lib/schema/arg-spec.js +0 -229
- package/lib/schema/cli-args.js +0 -254
- package/lib/schema/cli-transformers.js +0 -113
- package/lib/schema/keywords.js +0 -136
- package/lib/schema/schema.js +0 -725
- package/lib/utils.js +0 -512
- /package/lib/schema/{index.js → index.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../lib/cli/parser.
|
|
1
|
+
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../lib/cli/parser.ts"],"names":[],"mappings":";;;;;;AAwWA,8BAIC;AA5WD,6CAAmC;AACnC,uCAAwC;AAExC,oDAAuB;AACvB,0DAA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AAC;QAC/B,CAAC;IACH,CAAC;CACF;AA7SD,8BA6SC;AAED;;GAEG;AACH,SAAgB,SAAS,CAAC,KAAK,GAAG,KAAK;IACrC,IAAA,uBAAc,GAAE,CAAC;IAEjB,OAAO,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -1,118 +1,78 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import type { ExtMetadata, ExtRecord, InstallType } from 'appium/types';
|
|
2
|
+
import ExtensionCliCommand from './extension-command';
|
|
3
|
+
import type { ExtensionArgs, ExtensionCommandOptions, ExtensionUpdateResult, PostInstallText, RunOutput } from './extension-command';
|
|
4
|
+
type PluginInstallOpts = {
|
|
5
|
+
plugin: string;
|
|
6
|
+
installType: InstallType;
|
|
7
|
+
packageName?: string;
|
|
8
|
+
};
|
|
9
|
+
type PluginUninstallOpts = {
|
|
10
|
+
plugin: string;
|
|
11
|
+
};
|
|
12
|
+
type PluginUpdateOpts = {
|
|
13
|
+
plugin: string;
|
|
14
|
+
unsafe: boolean;
|
|
15
|
+
};
|
|
16
|
+
type PluginRunOptions = {
|
|
17
|
+
plugin: string;
|
|
18
|
+
scriptName: string;
|
|
19
|
+
extraArgs?: string[];
|
|
20
|
+
};
|
|
21
|
+
type PluginDoctorOptions = {
|
|
22
|
+
plugin: string;
|
|
23
|
+
};
|
|
24
|
+
export default class PluginCliCommand extends ExtensionCliCommand<'plugin'> {
|
|
25
|
+
constructor({ config, json }: ExtensionCommandOptions<'plugin'>);
|
|
10
26
|
/**
|
|
11
27
|
* Install a plugin
|
|
12
28
|
*
|
|
13
|
-
* @param
|
|
14
|
-
* @returns {Promise<ExtRecord<PluginType>>}
|
|
29
|
+
* @param opts - install options
|
|
15
30
|
*/
|
|
16
|
-
install({ plugin, installType, packageName }: PluginInstallOpts): Promise<ExtRecord<
|
|
31
|
+
install({ plugin, installType, packageName }: PluginInstallOpts): Promise<ExtRecord<'plugin'>>;
|
|
17
32
|
/**
|
|
18
33
|
* Uninstall a plugin
|
|
19
34
|
*
|
|
20
|
-
* @param
|
|
21
|
-
* @returns {Promise<ExtRecord<PluginType>>}
|
|
35
|
+
* @param opts - uninstall options
|
|
22
36
|
*/
|
|
23
|
-
uninstall({ plugin }: PluginUninstallOpts): Promise<ExtRecord<
|
|
37
|
+
uninstall({ plugin }: PluginUninstallOpts): Promise<ExtRecord<'plugin'>>;
|
|
24
38
|
/**
|
|
25
39
|
* Update a plugin
|
|
26
40
|
*
|
|
27
|
-
* @param
|
|
28
|
-
* @returns {Promise<import('./extension-command').ExtensionUpdateResult>}
|
|
41
|
+
* @param opts - update options
|
|
29
42
|
*/
|
|
30
|
-
update({ plugin, unsafe }: PluginUpdateOpts): Promise<
|
|
43
|
+
update({ plugin, unsafe }: PluginUpdateOpts): Promise<ExtensionUpdateResult>;
|
|
31
44
|
/**
|
|
32
45
|
* Run a script from a plugin
|
|
33
46
|
*
|
|
34
|
-
* @param
|
|
35
|
-
* @returns {Promise<import('./extension-command').RunOutput>}
|
|
47
|
+
* @param opts - script execution options
|
|
36
48
|
* @throws {Error} if the script fails to run
|
|
37
49
|
*/
|
|
38
|
-
run({ plugin, scriptName, extraArgs }: PluginRunOptions): Promise<
|
|
50
|
+
run({ plugin, scriptName, extraArgs }: PluginRunOptions): Promise<RunOutput>;
|
|
39
51
|
/**
|
|
40
52
|
* Runs doctor checks for the given plugin
|
|
41
53
|
*
|
|
42
|
-
* @param
|
|
43
|
-
* @returns
|
|
54
|
+
* @param opts - doctor command options
|
|
55
|
+
* @returns The amount of executed doctor checks.
|
|
44
56
|
* @throws {Error} If any of the mandatory Doctor checks fails.
|
|
45
57
|
*/
|
|
46
58
|
doctor({ plugin }: PluginDoctorOptions): Promise<number>;
|
|
47
|
-
}
|
|
48
|
-
export type ExtensionType = import("@appium/types").ExtensionType;
|
|
49
|
-
export type PluginType = import("@appium/types").PluginType;
|
|
50
|
-
export type ExtRecord<ExtType extends ExtensionType> = import("appium/types").ExtRecord<ExtType>;
|
|
51
|
-
/**
|
|
52
|
-
* Options for {@linkcode PluginCliCommand.install}
|
|
53
|
-
*/
|
|
54
|
-
export type PluginInstallOpts = {
|
|
55
59
|
/**
|
|
56
|
-
*
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
* - how to install this plugin. One of the INSTALL_TYPES
|
|
61
|
-
*/
|
|
62
|
-
installType: InstallType;
|
|
63
|
-
/**
|
|
64
|
-
* - for git/github installs, the plugin node package name
|
|
65
|
-
*/
|
|
66
|
-
packageName?: string | undefined;
|
|
67
|
-
};
|
|
68
|
-
export type InstallType = import("appium/types").InstallType;
|
|
69
|
-
/**
|
|
70
|
-
* Options for {@linkcode PluginCliCommand.uninstall}
|
|
71
|
-
*/
|
|
72
|
-
export type PluginUninstallOpts = {
|
|
73
|
-
/**
|
|
74
|
-
* - the name or spec of a plugin to uninstall
|
|
75
|
-
*/
|
|
76
|
-
plugin: string;
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* Options for {@linkcode PluginCliCommand.update}
|
|
80
|
-
*/
|
|
81
|
-
export type PluginUpdateOpts = {
|
|
82
|
-
/**
|
|
83
|
-
* - the name of the plugin to update
|
|
84
|
-
*/
|
|
85
|
-
plugin: string;
|
|
86
|
-
/**
|
|
87
|
-
* - if true, will perform unsafe updates past major revision boundaries
|
|
88
|
-
*/
|
|
89
|
-
unsafe: boolean;
|
|
90
|
-
};
|
|
91
|
-
/**
|
|
92
|
-
* Options for {@linkcode PluginCliCommand.run}.
|
|
93
|
-
*/
|
|
94
|
-
export type PluginRunOptions = {
|
|
95
|
-
/**
|
|
96
|
-
* - name of the plugin to run a script from
|
|
97
|
-
*/
|
|
98
|
-
plugin: string;
|
|
99
|
-
/**
|
|
100
|
-
* - name of the script to run
|
|
101
|
-
*/
|
|
102
|
-
scriptName: string;
|
|
103
|
-
/**
|
|
104
|
-
* - arguments to pass to the script
|
|
60
|
+
* Builds the success message displayed after a plugin installation.
|
|
61
|
+
*
|
|
62
|
+
* @param args - installed extension name and metadata
|
|
63
|
+
* @returns formatted success text
|
|
105
64
|
*/
|
|
106
|
-
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* Options for {@linkcode PluginCliCommand.doctor}.
|
|
110
|
-
*/
|
|
111
|
-
export type PluginDoctorOptions = {
|
|
65
|
+
getPostInstallText({ extName, extData }: ExtensionArgs<'plugin'>): PostInstallText;
|
|
112
66
|
/**
|
|
113
|
-
*
|
|
67
|
+
* Validates fields in `appium` field of `pluginMetadata`
|
|
68
|
+
*
|
|
69
|
+
* For any `package.json` fields which a plugin requires, validate the type of
|
|
70
|
+
* those fields on the `package.json` data, throwing an error if anything is
|
|
71
|
+
* amiss.
|
|
72
|
+
* @param pluginMetadata - `appium` metadata from extension package
|
|
73
|
+
* @param installSpec - install spec from CLI
|
|
114
74
|
*/
|
|
115
|
-
plugin: string;
|
|
116
|
-
}
|
|
117
|
-
|
|
75
|
+
validateExtensionFields(pluginMetadata: ExtMetadata<'plugin'>, installSpec: string): void;
|
|
76
|
+
}
|
|
77
|
+
export {};
|
|
118
78
|
//# sourceMappingURL=plugin-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-command.d.ts","sourceRoot":"","sources":["../../../lib/cli/plugin-command.
|
|
1
|
+
{"version":3,"file":"plugin-command.d.ts","sourceRoot":"","sources":["../../../lib/cli/plugin-command.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,WAAW,EAAE,SAAS,EAAE,WAAW,EAAC,MAAM,cAAc,CAAC;AACtE,OAAO,mBAAmB,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EACV,aAAa,EACb,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,EACf,SAAS,EACV,MAAM,qBAAqB,CAAC;AAI7B,KAAK,iBAAiB,GAAG;IAAC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;IACM,kBAAkB,CAAC,EAAC,OAAO,EAAE,OAAO,EAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,eAAe;IAIzF;;;;;;;;OAQG;IACM,uBAAuB,CAAC,cAAc,EAAE,WAAW,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI;CAanG"}
|
|
@@ -7,14 +7,7 @@ const lodash_1 = __importDefault(require("lodash"));
|
|
|
7
7
|
const extension_command_1 = __importDefault(require("./extension-command"));
|
|
8
8
|
const constants_1 = require("../constants");
|
|
9
9
|
const REQ_PLUGIN_FIELDS = ['pluginName', 'mainClass'];
|
|
10
|
-
/**
|
|
11
|
-
* @extends {ExtensionCliCommand<PluginType>}
|
|
12
|
-
*/
|
|
13
10
|
class PluginCliCommand extends extension_command_1.default {
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @param {import('./extension-command').ExtensionCommandOptions<PluginType>} opts
|
|
17
|
-
*/
|
|
18
11
|
constructor({ config, json }) {
|
|
19
12
|
super({ config, json });
|
|
20
13
|
this.knownExtensions = constants_1.KNOWN_PLUGINS;
|
|
@@ -22,8 +15,7 @@ class PluginCliCommand extends extension_command_1.default {
|
|
|
22
15
|
/**
|
|
23
16
|
* Install a plugin
|
|
24
17
|
*
|
|
25
|
-
* @param
|
|
26
|
-
* @returns {Promise<ExtRecord<PluginType>>}
|
|
18
|
+
* @param opts - install options
|
|
27
19
|
*/
|
|
28
20
|
async install({ plugin, installType, packageName }) {
|
|
29
21
|
return await super._install({
|
|
@@ -35,8 +27,7 @@ class PluginCliCommand extends extension_command_1.default {
|
|
|
35
27
|
/**
|
|
36
28
|
* Uninstall a plugin
|
|
37
29
|
*
|
|
38
|
-
* @param
|
|
39
|
-
* @returns {Promise<ExtRecord<PluginType>>}
|
|
30
|
+
* @param opts - uninstall options
|
|
40
31
|
*/
|
|
41
32
|
async uninstall({ plugin }) {
|
|
42
33
|
return await super._uninstall({ installSpec: plugin });
|
|
@@ -44,8 +35,7 @@ class PluginCliCommand extends extension_command_1.default {
|
|
|
44
35
|
/**
|
|
45
36
|
* Update a plugin
|
|
46
37
|
*
|
|
47
|
-
* @param
|
|
48
|
-
* @returns {Promise<import('./extension-command').ExtensionUpdateResult>}
|
|
38
|
+
* @param opts - update options
|
|
49
39
|
*/
|
|
50
40
|
async update({ plugin, unsafe }) {
|
|
51
41
|
return await super._update({ installSpec: plugin, unsafe });
|
|
@@ -53,8 +43,7 @@ class PluginCliCommand extends extension_command_1.default {
|
|
|
53
43
|
/**
|
|
54
44
|
* Run a script from a plugin
|
|
55
45
|
*
|
|
56
|
-
* @param
|
|
57
|
-
* @returns {Promise<import('./extension-command').RunOutput>}
|
|
46
|
+
* @param opts - script execution options
|
|
58
47
|
* @throws {Error} if the script fails to run
|
|
59
48
|
*/
|
|
60
49
|
async run({ plugin, scriptName, extraArgs }) {
|
|
@@ -68,8 +57,8 @@ class PluginCliCommand extends extension_command_1.default {
|
|
|
68
57
|
/**
|
|
69
58
|
* Runs doctor checks for the given plugin
|
|
70
59
|
*
|
|
71
|
-
* @param
|
|
72
|
-
* @returns
|
|
60
|
+
* @param opts - doctor command options
|
|
61
|
+
* @returns The amount of executed doctor checks.
|
|
73
62
|
* @throws {Error} If any of the mandatory Doctor checks fails.
|
|
74
63
|
*/
|
|
75
64
|
async doctor({ plugin }) {
|
|
@@ -78,9 +67,10 @@ class PluginCliCommand extends extension_command_1.default {
|
|
|
78
67
|
});
|
|
79
68
|
}
|
|
80
69
|
/**
|
|
70
|
+
* Builds the success message displayed after a plugin installation.
|
|
81
71
|
*
|
|
82
|
-
* @param
|
|
83
|
-
* @returns
|
|
72
|
+
* @param args - installed extension name and metadata
|
|
73
|
+
* @returns formatted success text
|
|
84
74
|
*/
|
|
85
75
|
getPostInstallText({ extName, extData }) {
|
|
86
76
|
return `Plugin ${extName}@${extData.version} successfully installed`.green;
|
|
@@ -91,9 +81,8 @@ class PluginCliCommand extends extension_command_1.default {
|
|
|
91
81
|
* For any `package.json` fields which a plugin requires, validate the type of
|
|
92
82
|
* those fields on the `package.json` data, throwing an error if anything is
|
|
93
83
|
* amiss.
|
|
94
|
-
* @param
|
|
95
|
-
* @param
|
|
96
|
-
* @returns {void}
|
|
84
|
+
* @param pluginMetadata - `appium` metadata from extension package
|
|
85
|
+
* @param installSpec - install spec from CLI
|
|
97
86
|
*/
|
|
98
87
|
validateExtensionFields(pluginMetadata, installSpec) {
|
|
99
88
|
const missingFields = REQ_PLUGIN_FIELDS.reduce((acc, field) => (pluginMetadata[field] ? acc : [...acc, field]), []);
|
|
@@ -104,45 +93,4 @@ class PluginCliCommand extends extension_command_1.default {
|
|
|
104
93
|
}
|
|
105
94
|
}
|
|
106
95
|
exports.default = PluginCliCommand;
|
|
107
|
-
/**
|
|
108
|
-
* @typedef {import('@appium/types').ExtensionType} ExtensionType
|
|
109
|
-
* @typedef {import('@appium/types').PluginType} PluginType
|
|
110
|
-
*/
|
|
111
|
-
/**
|
|
112
|
-
* @template {ExtensionType} ExtType
|
|
113
|
-
* @typedef {import('appium/types').ExtRecord<ExtType>} ExtRecord
|
|
114
|
-
*/
|
|
115
|
-
/**
|
|
116
|
-
* Options for {@linkcode PluginCliCommand.install}
|
|
117
|
-
* @typedef PluginInstallOpts
|
|
118
|
-
* @property {string} plugin - the name or spec of a plugin to install
|
|
119
|
-
* @property {InstallType} installType - how to install this plugin. One of the INSTALL_TYPES
|
|
120
|
-
* @property {string} [packageName] - for git/github installs, the plugin node package name
|
|
121
|
-
*/
|
|
122
|
-
/**
|
|
123
|
-
* @typedef {import('appium/types').InstallType} InstallType
|
|
124
|
-
*/
|
|
125
|
-
/**
|
|
126
|
-
* Options for {@linkcode PluginCliCommand.uninstall}
|
|
127
|
-
* @typedef PluginUninstallOpts
|
|
128
|
-
* @property {string} plugin - the name or spec of a plugin to uninstall
|
|
129
|
-
*/
|
|
130
|
-
/**
|
|
131
|
-
* Options for {@linkcode PluginCliCommand.update}
|
|
132
|
-
* @typedef PluginUpdateOpts
|
|
133
|
-
* @property {string} plugin - the name of the plugin to update
|
|
134
|
-
* @property {boolean} unsafe - if true, will perform unsafe updates past major revision boundaries
|
|
135
|
-
*/
|
|
136
|
-
/**
|
|
137
|
-
* Options for {@linkcode PluginCliCommand.run}.
|
|
138
|
-
* @typedef PluginRunOptions
|
|
139
|
-
* @property {string} plugin - name of the plugin to run a script from
|
|
140
|
-
* @property {string} scriptName - name of the script to run
|
|
141
|
-
* @property {string[]} [extraArgs] - arguments to pass to the script
|
|
142
|
-
*/
|
|
143
|
-
/**
|
|
144
|
-
* Options for {@linkcode PluginCliCommand.doctor}.
|
|
145
|
-
* @typedef PluginDoctorOptions
|
|
146
|
-
* @property {string} plugin - name of the plugin to run doctor checks for
|
|
147
|
-
*/
|
|
148
96
|
//# sourceMappingURL=plugin-command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-command.js","sourceRoot":"","sources":["../../../lib/cli/plugin-command.
|
|
1
|
+
{"version":3,"file":"plugin-command.js","sourceRoot":"","sources":["../../../lib/cli/plugin-command.ts"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AAEvB,4EAAsD;AAQtD,4CAA2C;AAE3C,MAAM,iBAAiB,GAAG,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;AAOtD,MAAqB,gBAAiB,SAAQ,2BAA6B;IACzE,YAAY,EAAC,MAAM,EAAE,IAAI,EAAoC;QAC3D,KAAK,CAAC,EAAC,MAAM,EAAE,IAAI,EAAC,CAAC,CAAC;QACtB,IAAI,CAAC,eAAe,GAAG,yBAAa,CAAC;IACvC,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,OAAO,CAAC,EAAC,MAAM,EAAE,WAAW,EAAE,WAAW,EAAoB;QACjE,OAAO,MAAM,KAAK,CAAC,QAAQ,CAAC;YAC1B,WAAW,EAAE,MAAM;YACnB,WAAW;YACX,WAAW;SACZ,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,KAAK,CAA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C9B,MAAM,IAAI,KAAK,CACb,qBAAqB,WAAW,oDAAoD;gBAClF,gCAAgC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,CAClE,CAAC;QACJ,CAAC;IACH,CAAC;CACF;AAjGD,mCAiGC"}
|
|
@@ -1,37 +1,32 @@
|
|
|
1
|
+
import type { Args, CliCommandSetup, CliCommandSetupSubcommand } from 'appium/types';
|
|
2
|
+
import type { ExtensionConfig } from '../extension/extension-config';
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param {import('appium/types').CliCommandSetupSubcommand} presetName
|
|
4
|
-
* @returns {Array<string>}
|
|
4
|
+
* Subcommands of preset for setup
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export declare const SUBCOMMAND_MOBILE = "mobile";
|
|
7
|
+
export declare const SUBCOMMAND_DESKTOP = "desktop";
|
|
8
|
+
export declare const SUBCOMMAND_BROWSER = "browser";
|
|
9
|
+
export declare const SUBCOMMAND_RESET = "reset";
|
|
7
10
|
/**
|
|
8
|
-
*
|
|
9
|
-
* @returns {string}
|
|
11
|
+
* Plugin names listed in KNOWN_PLUGINS to install by default.
|
|
10
12
|
*/
|
|
11
|
-
export
|
|
13
|
+
export declare const DEFAULT_PLUGINS: string[];
|
|
14
|
+
type DriverConfig = ExtensionConfig<'driver'>;
|
|
15
|
+
type PluginConfig = ExtensionConfig<'plugin'>;
|
|
12
16
|
/**
|
|
13
|
-
*
|
|
14
|
-
* @template {import('appium/types').CliCommandSetup} SetupCmd
|
|
15
|
-
* @param {import('appium/types').Args<SetupCmd>} preConfigArgs
|
|
16
|
-
* @param {DriverConfig} driverConfig
|
|
17
|
-
* @param {PluginConfig} pluginConfig
|
|
18
|
-
* @returns {Promise<void>}
|
|
17
|
+
* Return a list of drivers available for current host platform.
|
|
19
18
|
*/
|
|
20
|
-
export function
|
|
19
|
+
export declare function getPresetDrivers(presetName: CliCommandSetupSubcommand): string[];
|
|
21
20
|
/**
|
|
22
|
-
*
|
|
21
|
+
* Return desktop platform name for setup command description.
|
|
23
22
|
*/
|
|
24
|
-
export
|
|
25
|
-
export const SUBCOMMAND_DESKTOP: "desktop";
|
|
26
|
-
export const SUBCOMMAND_BROWSER: "browser";
|
|
27
|
-
export const SUBCOMMAND_RESET: "reset";
|
|
23
|
+
export declare function determinePlatformName(): string;
|
|
28
24
|
/**
|
|
29
|
-
*
|
|
25
|
+
* Runs the `setup` command and applies the selected preset.
|
|
26
|
+
*
|
|
27
|
+
* Depending on the subcommand, this installs mobile/desktop/browser presets or
|
|
28
|
+
* removes all installed extensions and manifests via `reset`.
|
|
30
29
|
*/
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export type CliExtensionSubcommand = import("appium/types").CliExtensionSubcommand;
|
|
34
|
-
export type PluginConfig = import("../extension/extension-config").ExtensionConfig<CliExtensionCommand>;
|
|
35
|
-
export type DriverConfig = import("../extension/extension-config").ExtensionConfig<CliExtensionCommand>;
|
|
36
|
-
export type Args = import("appium/types").Args<CliExtensionCommand, CliExtensionSubcommand>;
|
|
30
|
+
export declare function runSetupCommand(preConfigArgs: Args<CliCommandSetup>, driverConfig: DriverConfig, pluginConfig: PluginConfig): Promise<void>;
|
|
31
|
+
export {};
|
|
37
32
|
//# sourceMappingURL=setup-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-command.d.ts","sourceRoot":"","sources":["../../../lib/cli/setup-command.
|
|
1
|
+
{"version":3,"file":"setup-command.d.ts","sourceRoot":"","sources":["../../../lib/cli/setup-command.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,IAAI,EACJ,eAAe,EACf,yBAAyB,EAG1B,MAAM,cAAc,CAAC;AAStB,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAexC;;GAEG;AACH,eAAO,MAAM,eAAe,UAA0B,CAAC;AAEvD,KAAK,YAAY,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;AAC9C,KAAK,YAAY,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;AAG9C;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,yBAAyB,GAAG,MAAM,EAAE,CAahF;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAO9C;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,EACpC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC,IAAI,CAAC,CAkBf"}
|
|
@@ -23,12 +23,11 @@ exports.SUBCOMMAND_RESET = 'reset';
|
|
|
23
23
|
* Pairs of preset subcommand and driver candidates.
|
|
24
24
|
* Driver names listed in KNOWN_DRIVERS to install by default
|
|
25
25
|
*/
|
|
26
|
-
const PRESET_PAIRS = Object.freeze(
|
|
27
|
-
/** @type {const} */ ({
|
|
26
|
+
const PRESET_PAIRS = Object.freeze({
|
|
28
27
|
mobile: lodash_1.default.keys(constants_1.MOBILE_DRIVERS),
|
|
29
28
|
desktop: lodash_1.default.keys(constants_1.DESKTOP_DRIVERS),
|
|
30
|
-
browser: lodash_1.default.keys(constants_1.DESKTOP_BROWSERS)
|
|
31
|
-
})
|
|
29
|
+
browser: lodash_1.default.keys(constants_1.DESKTOP_BROWSERS),
|
|
30
|
+
});
|
|
32
31
|
const DRIVERS_ONLY_MACOS = ['xcuitest', 'safari', 'mac2'];
|
|
33
32
|
const DRIVERS_ONLY_WINDOWS = ['windows'];
|
|
34
33
|
/**
|
|
@@ -37,8 +36,6 @@ const DRIVERS_ONLY_WINDOWS = ['windows'];
|
|
|
37
36
|
exports.DEFAULT_PLUGINS = ['images', 'inspector'];
|
|
38
37
|
/**
|
|
39
38
|
* Return a list of drivers available for current host platform.
|
|
40
|
-
* @param {import('appium/types').CliCommandSetupSubcommand} presetName
|
|
41
|
-
* @returns {Array<string>}
|
|
42
39
|
*/
|
|
43
40
|
function getPresetDrivers(presetName) {
|
|
44
41
|
return lodash_1.default.filter(PRESET_PAIRS[presetName], (driver) => {
|
|
@@ -53,7 +50,6 @@ function getPresetDrivers(presetName) {
|
|
|
53
50
|
}
|
|
54
51
|
/**
|
|
55
52
|
* Return desktop platform name for setup command description.
|
|
56
|
-
* @returns {string}
|
|
57
53
|
*/
|
|
58
54
|
function determinePlatformName() {
|
|
59
55
|
if (support_1.system.isMac()) {
|
|
@@ -65,12 +61,10 @@ function determinePlatformName() {
|
|
|
65
61
|
return 'Linux';
|
|
66
62
|
}
|
|
67
63
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* @param {PluginConfig} pluginConfig
|
|
73
|
-
* @returns {Promise<void>}
|
|
64
|
+
* Runs the `setup` command and applies the selected preset.
|
|
65
|
+
*
|
|
66
|
+
* Depending on the subcommand, this installs mobile/desktop/browser presets or
|
|
67
|
+
* removes all installed extensions and manifests via `reset`.
|
|
74
68
|
*/
|
|
75
69
|
async function runSetupCommand(preConfigArgs, driverConfig, pluginConfig) {
|
|
76
70
|
switch (preConfigArgs.setupCommand) {
|
|
@@ -94,27 +88,23 @@ async function runSetupCommand(preConfigArgs, driverConfig, pluginConfig) {
|
|
|
94
88
|
;
|
|
95
89
|
/**
|
|
96
90
|
* Resets all installed drivers and extensions
|
|
97
|
-
*
|
|
98
|
-
* @param {DriverConfig} driverConfig
|
|
99
|
-
* @param {PluginConfig} pluginConfig
|
|
100
|
-
* @returns {Promise<void>}
|
|
101
91
|
*/
|
|
102
92
|
async function resetAllExtensions(driverConfig, pluginConfig) {
|
|
103
|
-
|
|
93
|
+
const commandConfigs = [
|
|
104
94
|
['driver', driverConfig],
|
|
105
95
|
['plugin', pluginConfig],
|
|
106
|
-
]
|
|
107
|
-
|
|
96
|
+
];
|
|
97
|
+
for (const [command, config] of commandConfigs) {
|
|
98
|
+
for (const extensionName of lodash_1.default.keys(config.installedExtensions)) {
|
|
108
99
|
try {
|
|
109
|
-
await uninstallExtension(extensionName, extensionCommandArgs(
|
|
110
|
-
/** @type {DriverConfig|PluginConfig} */ (config));
|
|
100
|
+
await uninstallExtension(extensionName, extensionCommandArgs(command, extensionName, 'uninstall'), config);
|
|
111
101
|
}
|
|
112
102
|
catch (e) {
|
|
113
103
|
logger_1.default.warn(`${extensionName} ${command} cannot be uninstalled. Will delete the manifest anyway. ` +
|
|
114
104
|
`Original error: ${e.stack}`);
|
|
115
105
|
}
|
|
116
106
|
}
|
|
117
|
-
const manifestPath =
|
|
107
|
+
const manifestPath = config.manifestPath;
|
|
118
108
|
if (!await support_1.fs.exists(manifestPath)) {
|
|
119
109
|
continue;
|
|
120
110
|
}
|
|
@@ -129,33 +119,24 @@ async function resetAllExtensions(driverConfig, pluginConfig) {
|
|
|
129
119
|
}
|
|
130
120
|
/**
|
|
131
121
|
* Install drivers listed in DEFAULT_DRIVERS.
|
|
132
|
-
* @param {DriverConfig} driverConfig
|
|
133
|
-
* @returns {Promise<void>}
|
|
134
122
|
*/
|
|
135
123
|
async function setupMobileDrivers(driverConfig) {
|
|
136
124
|
await installDrivers(exports.SUBCOMMAND_MOBILE, driverConfig);
|
|
137
125
|
}
|
|
138
126
|
/**
|
|
139
127
|
* Install all of known drivers listed in BROWSER_DRIVERS.
|
|
140
|
-
* @param {DriverConfig} driverConfig
|
|
141
|
-
* @returns {Promise<void>}
|
|
142
128
|
*/
|
|
143
129
|
async function setupBrowserDrivers(driverConfig) {
|
|
144
130
|
await installDrivers(exports.SUBCOMMAND_BROWSER, driverConfig);
|
|
145
131
|
}
|
|
146
132
|
/**
|
|
147
133
|
* Install all of known drivers listed in DESKTOP_APP_DRIVERS.
|
|
148
|
-
* @param {DriverConfig} driverConfig
|
|
149
|
-
* @returns {Promise<void>}
|
|
150
134
|
*/
|
|
151
135
|
async function setupDesktopAppDrivers(driverConfig) {
|
|
152
136
|
await installDrivers(exports.SUBCOMMAND_DESKTOP, driverConfig);
|
|
153
137
|
}
|
|
154
138
|
/**
|
|
155
139
|
* Install the given driver name. It skips the installation if the given driver name was already installed.
|
|
156
|
-
* @param {import('appium/types').CliCommandSetupSubcommand} subcommand
|
|
157
|
-
* @param {DriverConfig} driverConfig
|
|
158
|
-
* @returns {Promise<void>}
|
|
159
140
|
*/
|
|
160
141
|
async function installDrivers(subcommand, driverConfig) {
|
|
161
142
|
for (const driverName of getPresetDrivers(subcommand)) {
|
|
@@ -164,8 +145,6 @@ async function installDrivers(subcommand, driverConfig) {
|
|
|
164
145
|
}
|
|
165
146
|
/**
|
|
166
147
|
* Install plugins listed in DEFAULT_PLUGINS.
|
|
167
|
-
* @param {PluginConfig} pluginConfig
|
|
168
|
-
* @returns {Promise<void>}
|
|
169
148
|
*/
|
|
170
149
|
async function setupDefaultPlugins(pluginConfig) {
|
|
171
150
|
for (const pluginName of exports.DEFAULT_PLUGINS) {
|
|
@@ -174,10 +153,6 @@ async function setupDefaultPlugins(pluginConfig) {
|
|
|
174
153
|
}
|
|
175
154
|
/**
|
|
176
155
|
* Run the given extensionConfigArgs command after checking if the given extensionName was already installed.
|
|
177
|
-
* @param {string} extensionName
|
|
178
|
-
* @param {Args} extensionConfigArgs
|
|
179
|
-
* @param {DriverConfig|PluginConfig} extensionConfig
|
|
180
|
-
* @returns {Promise<void>}
|
|
181
156
|
*/
|
|
182
157
|
async function installExtension(extensionName, extensionConfigArgs, extensionConfig) {
|
|
183
158
|
if (lodash_1.default.keys(extensionConfig.installedExtensions).includes(extensionName)) {
|
|
@@ -189,10 +164,6 @@ async function installExtension(extensionName, extensionConfigArgs, extensionCon
|
|
|
189
164
|
}
|
|
190
165
|
/**
|
|
191
166
|
* Run the given extensionConfigArgs command after checking if the given extensionName was already installed.
|
|
192
|
-
* @param {string} extensionName
|
|
193
|
-
* @param {Args} extensionConfigArgs
|
|
194
|
-
* @param {DriverConfig|PluginConfig} extensionConfig
|
|
195
|
-
* @returns {Promise<void>}
|
|
196
167
|
*/
|
|
197
168
|
async function uninstallExtension(extensionName, extensionConfigArgs, extensionConfig) {
|
|
198
169
|
if (!lodash_1.default.keys(extensionConfig.installedExtensions).includes(extensionName)) {
|
|
@@ -204,23 +175,10 @@ async function uninstallExtension(extensionName, extensionConfigArgs, extensionC
|
|
|
204
175
|
}
|
|
205
176
|
/**
|
|
206
177
|
* Return the command config for driver or plugin.
|
|
207
|
-
* @param {CliExtensionCommand} extensionCommand
|
|
208
|
-
* @param {string} extensionName
|
|
209
|
-
* @param {CliExtensionSubcommand} command
|
|
210
|
-
* @returns {Args}
|
|
211
178
|
*/
|
|
212
179
|
function extensionCommandArgs(extensionCommand, extensionName, command) {
|
|
213
180
|
return (extensionCommand === 'plugin')
|
|
214
181
|
? { 'subcommand': 'plugin', 'pluginCommand': command, 'plugin': extensionName }
|
|
215
182
|
: { 'subcommand': 'driver', 'driverCommand': command, 'driver': extensionName };
|
|
216
183
|
}
|
|
217
|
-
/**
|
|
218
|
-
* @typedef {import('appium/types').CliExtensionCommand} CliExtensionCommand
|
|
219
|
-
* @typedef {import('appium/types').CliExtensionSubcommand} CliExtensionSubcommand
|
|
220
|
-
* @typedef {import('../extension/extension-config').ExtensionConfig<CliExtensionCommand>} PluginConfig
|
|
221
|
-
* @typedef {import('../extension/extension-config').ExtensionConfig<CliExtensionCommand>} DriverConfig
|
|
222
|
-
*/
|
|
223
|
-
/**
|
|
224
|
-
* @typedef {import('appium/types').Args<CliExtensionCommand, CliExtensionSubcommand>} Args
|
|
225
|
-
*/
|
|
226
184
|
//# sourceMappingURL=setup-command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-command.js","sourceRoot":"","sources":["../../../lib/cli/setup-command.
|
|
1
|
+
{"version":3,"file":"setup-command.js","sourceRo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