@astur-mobile/cli 0.1.0-beta.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/assets/brand/Astur_A_balck.png +0 -0
- package/assets/brand/Astur_A_white.png +0 -0
- package/assets/brand/astur-logo-dark.png +0 -0
- package/assets/brand/astur-logo-light.png +0 -0
- package/assets/brand/astur-mark-light.png +0 -0
- package/assets/brand/astur-mark-transparent.png +0 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +917 -0
- package/dist/index.js.map +1 -0
- package/dist/inspectorServer.d.ts +194 -0
- package/dist/inspectorServer.d.ts.map +1 -0
- package/dist/inspectorServer.js +3487 -0
- package/dist/inspectorServer.js.map +1 -0
- package/dist/inspectorUi.d.ts +17 -0
- package/dist/inspectorUi.d.ts.map +1 -0
- package/dist/inspectorUi.js +1181 -0
- package/dist/inspectorUi.js.map +1 -0
- package/dist/scaffold.d.ts +67 -0
- package/dist/scaffold.d.ts.map +1 -0
- package/dist/scaffold.js +470 -0
- package/dist/scaffold.js.map +1 -0
- package/package.json +46 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import type { AsturConfig, DeviceInfo, DeviceKind, DoctorCheck, LocatorSuggestion, PlatformName } from '@astur-mobile/protocol';
|
|
3
|
+
import { type InspectorDeviceAction } from './inspectorServer.js';
|
|
4
|
+
import { buildInitFiles, defaultInitAnswers } from './scaffold.js';
|
|
5
|
+
interface CodegenArgs {
|
|
6
|
+
help: boolean;
|
|
7
|
+
json: boolean;
|
|
8
|
+
ui: boolean;
|
|
9
|
+
launch: boolean;
|
|
10
|
+
platform?: PlatformName;
|
|
11
|
+
deviceKind?: DeviceKind;
|
|
12
|
+
deviceId?: string;
|
|
13
|
+
appPath?: string;
|
|
14
|
+
appId?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function main(argv?: string[]): Promise<void>;
|
|
17
|
+
declare function printChecks(checks: DoctorCheck[], options?: {
|
|
18
|
+
verbose?: boolean;
|
|
19
|
+
}): void;
|
|
20
|
+
declare function parseCodegenArgs(args: string[]): CodegenArgs;
|
|
21
|
+
declare function selectCodegenDevice(devices: DeviceInfo[], deviceId?: string, deviceKind?: DeviceKind): DeviceInfo | undefined;
|
|
22
|
+
declare function buildCodegenConfig(selected: DeviceInfo, parsed: CodegenArgs): AsturConfig;
|
|
23
|
+
declare function codegenPreparationDetails(selected: DeviceInfo, config: AsturConfig): {
|
|
24
|
+
title: string;
|
|
25
|
+
notes: string[];
|
|
26
|
+
};
|
|
27
|
+
export declare const __testing: {
|
|
28
|
+
printChecks: typeof printChecks;
|
|
29
|
+
buildInitFiles: typeof buildInitFiles;
|
|
30
|
+
defaultInitAnswers: typeof defaultInitAnswers;
|
|
31
|
+
parseCodegenArgs: typeof parseCodegenArgs;
|
|
32
|
+
selectCodegenDevice: typeof selectCodegenDevice;
|
|
33
|
+
buildCodegenConfig: typeof buildCodegenConfig;
|
|
34
|
+
codegenPreparationDetails: typeof codegenPreparationDetails;
|
|
35
|
+
inspectorServer: {
|
|
36
|
+
buildInspectorHtml: (device: DeviceInfo) => string;
|
|
37
|
+
generateTestCode: (steps: import("./inspectorServer.js").RecordingStep[], lang: "typescript" | "javascript") => string;
|
|
38
|
+
generateRecordedStepCode: (step: import("./inspectorServer.js").RecordingStep) => string;
|
|
39
|
+
getInspectorDeviceActionDefinitions: (device: Pick<DeviceInfo, "platform" | "kind">) => import("./inspectorServer.js").InspectorDeviceActionDefinition[];
|
|
40
|
+
inspectorDeviceActionLabel: (action: InspectorDeviceAction) => string;
|
|
41
|
+
findUiNodeAtPoint: (nodes: import("./inspectorServer.js").UiNode[], point: {
|
|
42
|
+
x: number;
|
|
43
|
+
y: number;
|
|
44
|
+
}, options?: {
|
|
45
|
+
preferActionable?: boolean;
|
|
46
|
+
}) => import("./inspectorServer.js").UiNode | undefined;
|
|
47
|
+
normalizeRecordingLocator: (locator: string) => string;
|
|
48
|
+
suggestLocatorsForNode: (node: import("./inspectorServer.js").UiNode, nodes: import("./inspectorServer.js").UiNode[]) => LocatorSuggestion[];
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAUA,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,UAAU,EACV,WAAW,EAEX,iBAAiB,EAEjB,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAIL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAqB,MAAM,eAAe,CAAC;AAEtF,UAAU,WAAW;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAeD,wBAAsB,IAAI,CAAC,IAAI,WAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgCtE;AAwRD,iBAAS,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,IAAI,CAkCrF;AAsID,iBAAS,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,WAAW,CAuGrD;AAED,iBAAS,mBAAmB,CAC1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