create-wdio 10.0.0-alpha.149 → 10.0.0-alpha.18

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 CHANGED
@@ -64,14 +64,6 @@ You can pass the following command line flags to modify the bootstrap mechanism:
64
64
  * `--yes` - Will fill in all config defaults without prompting (default: `false`)
65
65
  * `--npm-tag` - use a specific NPM tag for `@wdio/cli` package (default: `latest`)
66
66
 
67
- Every question of the configuration wizard also has a flag, e.g. `--runner`, `--framework`, `--typescript`, `--browsers`, `--reporters` or `--services`. A flag answers its question and the wizard only asks the rest. Combined with `--yes` the setup runs without any prompt, e.g. for a coding agent or a CI job:
68
-
69
- ```sh
70
- npm init wdio@latest ./e2e -- --yes --framework cucumber --no-typescript --reporters spec,junit
71
- ```
72
-
73
- Run `npm init wdio@latest -- --help` for every flag and the values it accepts. Boolean flags take a `--no-` prefix. An invalid value, or a flag for a question that does not apply to your setup, exits with code 2.
74
-
75
67
  ----
76
68
 
77
69
  For more information on WebdriverIO see the [homepage](https://webdriver.io).
@@ -22,19 +22,19 @@ export declare const cmdArgs: {
22
22
  readonly default: "latest";
23
23
  };
24
24
  };
25
- export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "yes" | "npmTag" | "yarn"> & import("yargs").InferredOptionTypes<{
26
- yarn: {
25
+ export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "yarn" | "yes" | "npmTag"> & import("yargs").InferredOptionTypes<{
26
+ readonly yarn: {
27
27
  readonly type: "boolean";
28
28
  readonly desc: "Install packages via Yarn package manager.";
29
29
  readonly default: boolean;
30
30
  };
31
- yes: {
31
+ readonly yes: {
32
32
  readonly alias: "y";
33
33
  readonly desc: "will fill in all config defaults without prompting";
34
34
  readonly type: "boolean";
35
35
  readonly default: false;
36
36
  };
37
- npmTag: {
37
+ readonly npmTag: {
38
38
  readonly alias: "t";
39
39
  readonly desc: "define NPM tag to use for WebdriverIO related packages";
40
40
  readonly type: "string";
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/cli/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAIjC,OAAO,EAEH,gBAAgB,EACnB,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAUzD,eAAO,MAAM,OAAO,WAAW,CAAA;AAC/B,eAAO,MAAM,IAAI,4EAA4E,CAAA;AAE7F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;CAkBV,CAAA;AAEV,eAAO,MAAM,OAAO,GAAI,OAAO,IAAI;;;;;;;;;;;;;;;;;;GAUlC,CAAA;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,sBAAsB,EAAE,YAAY,0BAAmB;;;;GAiB1F;AAED,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAG,MAAM,YAAY,CAAA;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/cli/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAIjC,OAAO,EAEH,gBAAgB,EACnB,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAUzD,eAAO,MAAM,OAAO,WAAW,CAAA;AAC/B,eAAO,MAAM,IAAI,4EAA4E,CAAA;AAE7F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;CAkBV,CAAA;AAEV,eAAO,MAAM,OAAO,GAAI,OAAO,IAAI;;;;;;;;;;;;;;;;;;GAKlC,CAAA;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,sBAAsB,EAAE,YAAY,0BAAmB;;;;GAQ1F;AAED,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAG,MAAM,YAAY,CAAA;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA"}
@@ -1,5 +1,5 @@
1
- import type { ParsedAnswers, Questionnair } from '../types.js';
2
- export declare function runConfigCommand(parsedAnswers: ParsedAnswers, npmTag: string, yes?: boolean): Promise<void>;
1
+ import type { ParsedAnswers } from '../types.js';
2
+ export declare function runConfigCommand(parsedAnswers: ParsedAnswers, npmTag: string): Promise<void>;
3
3
  /**
4
4
  * Helper utility used in `run` and `install` command to create config if none exist
5
5
  * @param {string} command to be executed by user
@@ -19,7 +19,7 @@ export declare function resolveTsConfigFilePath({ projectRootDir, hasRootTSConfi
19
19
  specs?: string;
20
20
  runnerShort: string;
21
21
  }): string;
22
- export declare const parseAnswers: (yes: boolean, flagAnswers?: Partial<Questionnair>) => Promise<ParsedAnswers>;
22
+ export declare const parseAnswers: (yes: boolean) => Promise<ParsedAnswers>;
23
23
  /**
24
24
  * Helper utility used in `run` and `install` command to check whether a config file currently exists
25
25
  * @param configPathNoExtension the file path to the WDIO config file without extension
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/cli/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAI9D,wBAAsB,gBAAgB,CAAC,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,UAAQ,iBAuC/F;AAED;;;;;GAKG;AACH,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,GAAE,QAA2B,mBAsB9H;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,EACpC,cAAc,EACd,eAAe,EACf,KAAK,EACL,WAAW,EACd,EAAE;IACC,cAAc,EAAE,MAAM,CAAA;IACtB,eAAe,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE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