-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: clean up, add docs, add entry point (#1955)
* test generated docs * add metadata to entry point, regenerate * add tooling * bump cucumber-expressions to fix issue * combine in a single `docs` script and tell dependency-lint.yml * regenerate docs * rework directories * improve docs * add entry point at /api * runtime options to extend * get the docs in reasonable shape; make naming consistent, split out some types/interfaces as needed * get the docs in reasonable shape; make naming consistent, split out some types/interfaces as needed * refactor scripts, add a ci one * fix api-extractor warning for now * use @public * rework tooling, add guidance to CONTRIBUTING.md * write some docs, make some stuff optional where possible * simplify dir structure * add changelog entry * link to new doc in changelog entry * rename interfaces and properties per review feedback * fix hand-written doc * Update docs/javascript_api.md Co-authored-by: Aurélien Reeves <aurelien.reeves@smartbear.com> * Update javascript_api.md Co-authored-by: Aurélien Reeves <aurelien.reeves@smartbear.com>
- Loading branch information
1 parent
cc633c5
commit 9e31198
Showing
71 changed files
with
1,890 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
"mainEntryPointFilePath": "<projectFolder>/lib/api/index.d.ts", | ||
"compiler": { | ||
}, | ||
"apiReport": { | ||
"enabled": true, | ||
"reportFolder": "<projectFolder>/reports/", | ||
"reportTempFolder": "<projectFolder>/tmp/api-extractor/" | ||
}, | ||
"docModel": { | ||
"enabled": true, | ||
"apiJsonFilePath": "<projectFolder>/tmp/api-extractor/<unscopedPackageName>.api.json" | ||
}, | ||
"dtsRollup": { | ||
"enabled": false | ||
}, | ||
"messages": { | ||
"extractorMessageReporting": { | ||
"ae-forgotten-export": { | ||
"logLevel": "none" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ executedModules: | |
npmScripts: | ||
dev: | ||
- build | ||
- docs:ci | ||
- docs:local | ||
- lint | ||
- publish | ||
- test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [ILoadConfigurationOptions](./cucumber.iloadconfigurationoptions.md) > [file](./cucumber.iloadconfigurationoptions.file.md) | ||
|
||
## ILoadConfigurationOptions.file property | ||
|
||
Path to load configuration file from (defaults to `cucumber.(js|cjs|mjs|json)` if omitted). | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
file?: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [ILoadConfigurationOptions](./cucumber.iloadconfigurationoptions.md) | ||
|
||
## ILoadConfigurationOptions interface | ||
|
||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface ILoadConfigurationOptions | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [file?](./cucumber.iloadconfigurationoptions.file.md) | string | <i>(Optional)</i> Path to load configuration file from (defaults to <code>cucumber.(js|cjs|mjs|json)</code> if omitted). | | ||
| [profiles?](./cucumber.iloadconfigurationoptions.profiles.md) | string\[\] | <i>(Optional)</i> Zero or more profile names from which to source configuration (if omitted or empty, the <code>default</code> profile will be used). | | ||
| [provided?](./cucumber.iloadconfigurationoptions.provided.md) | Partial<IConfiguration> | <i>(Optional)</i> Ad-hoc configuration options to be applied over the top of whatever is loaded from the configuration file/profiles. | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [ILoadConfigurationOptions](./cucumber.iloadconfigurationoptions.md) > [profiles](./cucumber.iloadconfigurationoptions.profiles.md) | ||
|
||
## ILoadConfigurationOptions.profiles property | ||
|
||
Zero or more profile names from which to source configuration (if omitted or empty, the `default` profile will be used). | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
profiles?: string[]; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [ILoadConfigurationOptions](./cucumber.iloadconfigurationoptions.md) > [provided](./cucumber.iloadconfigurationoptions.provided.md) | ||
|
||
## ILoadConfigurationOptions.provided property | ||
|
||
Ad-hoc configuration options to be applied over the top of whatever is loaded from the configuration file/profiles. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
provided?: Partial<IConfiguration>; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [ILoadSupportOptions](./cucumber.iloadsupportoptions.md) | ||
|
||
## ILoadSupportOptions interface | ||
|
||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface ILoadSupportOptions | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [sources](./cucumber.iloadsupportoptions.sources.md) | [ISourcesCoordinates](./cucumber.isourcescoordinates.md) | | | ||
| [support](./cucumber.iloadsupportoptions.support.md) | [ISupportCodeCoordinates](./cucumber.isupportcodecoordinates.md) | | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [ILoadSupportOptions](./cucumber.iloadsupportoptions.md) > [sources](./cucumber.iloadsupportoptions.sources.md) | ||
|
||
## ILoadSupportOptions.sources property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
sources: ISourcesCoordinates; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [ILoadSupportOptions](./cucumber.iloadsupportoptions.md) > [support](./cucumber.iloadsupportoptions.support.md) | ||
|
||
## ILoadSupportOptions.support property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
support: ISupportCodeCoordinates; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [IResolvedConfiguration](./cucumber.iresolvedconfiguration.md) | ||
|
||
## IResolvedConfiguration interface | ||
|
||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface IResolvedConfiguration | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [runConfiguration](./cucumber.iresolvedconfiguration.runconfiguration.md) | [IRunConfiguration](./cucumber.irunconfiguration.md) | The format that can be passed into <code>runCucumber</code>. | | ||
| [useConfiguration](./cucumber.iresolvedconfiguration.useconfiguration.md) | IConfiguration | The final flat configuration object resolved from the configuration file/profiles plus any extra provided. | | ||
|
13 changes: 13 additions & 0 deletions
13
docs/api/cucumber.iresolvedconfiguration.runconfiguration.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [IResolvedConfiguration](./cucumber.iresolvedconfiguration.md) > [runConfiguration](./cucumber.iresolvedconfiguration.runconfiguration.md) | ||
|
||
## IResolvedConfiguration.runConfiguration property | ||
|
||
The format that can be passed into `runCucumber`<!-- -->. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
runConfiguration: IRunConfiguration; | ||
``` |
13 changes: 13 additions & 0 deletions
13
docs/api/cucumber.iresolvedconfiguration.useconfiguration.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [IResolvedConfiguration](./cucumber.iresolvedconfiguration.md) > [useConfiguration](./cucumber.iresolvedconfiguration.useconfiguration.md) | ||
|
||
## IResolvedConfiguration.useConfiguration property | ||
|
||
The final flat configuration object resolved from the configuration file/profiles plus any extra provided. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
useConfiguration: IConfiguration; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [IRunConfiguration](./cucumber.irunconfiguration.md) > [formats](./cucumber.irunconfiguration.formats.md) | ||
|
||
## IRunConfiguration.formats property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
formats: IRunOptionsFormats; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [IRunConfiguration](./cucumber.irunconfiguration.md) | ||
|
||
## IRunConfiguration interface | ||
|
||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface IRunConfiguration | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [formats](./cucumber.irunconfiguration.formats.md) | [IRunOptionsFormats](./cucumber.irunoptionsformats.md) | | | ||
| [runtime](./cucumber.irunconfiguration.runtime.md) | [IRunOptionsRuntime](./cucumber.irunoptionsruntime.md) | | | ||
| [sources](./cucumber.irunconfiguration.sources.md) | [ISourcesCoordinates](./cucumber.isourcescoordinates.md) | | | ||
| [support](./cucumber.irunconfiguration.support.md) | [ISupportCodeCoordinates](./cucumber.isupportcodecoordinates.md) | | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [IRunConfiguration](./cucumber.irunconfiguration.md) > [runtime](./cucumber.irunconfiguration.runtime.md) | ||
|
||
## IRunConfiguration.runtime property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
runtime: IRunOptionsRuntime; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [IRunConfiguration](./cucumber.irunconfiguration.md) > [sources](./cucumber.irunconfiguration.sources.md) | ||
|
||
## IRunConfiguration.sources property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
sources: ISourcesCoordinates; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [IRunConfiguration](./cucumber.irunconfiguration.md) > [support](./cucumber.irunconfiguration.support.md) | ||
|
||
## IRunConfiguration.support property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
support: ISupportCodeCoordinates; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [IRunEnvironment](./cucumber.irunenvironment.md) > [cwd](./cucumber.irunenvironment.cwd.md) | ||
|
||
## IRunEnvironment.cwd property | ||
|
||
Working directory for the project (defaults to `process.cwd()` if omitted). | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
cwd?: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [IRunEnvironment](./cucumber.irunenvironment.md) > [env](./cucumber.irunenvironment.env.md) | ||
|
||
## IRunEnvironment.env property | ||
|
||
Environment variables (defaults to `process.env` if omitted). | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
env?: NodeJS.ProcessEnv; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [IRunEnvironment](./cucumber.irunenvironment.md) | ||
|
||
## IRunEnvironment interface | ||
|
||
Contextual data about the project environment. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface IRunEnvironment | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [cwd?](./cucumber.irunenvironment.cwd.md) | string | <i>(Optional)</i> Working directory for the project (defaults to <code>process.cwd()</code> if omitted). | | ||
| [env?](./cucumber.irunenvironment.env.md) | NodeJS.ProcessEnv | <i>(Optional)</i> Environment variables (defaults to <code>process.env</code> if omitted). | | ||
| [stderr?](./cucumber.irunenvironment.stderr.md) | IFormatterStream | <i>(Optional)</i> Writable stream where the test run's warning/error output is written (defaults to <code>process.stderr</code> if omitted). | | ||
| [stdout?](./cucumber.irunenvironment.stdout.md) | IFormatterStream | <i>(Optional)</i> Writable stream where the test run's main output is written (defaults to <code>process.stdout</code> if omitted). | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [IRunEnvironment](./cucumber.irunenvironment.md) > [stderr](./cucumber.irunenvironment.stderr.md) | ||
|
||
## IRunEnvironment.stderr property | ||
|
||
Writable stream where the test run's warning/error output is written (defaults to `process.stderr` if omitted). | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
stderr?: IFormatterStream; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@cucumber/cucumber](./cucumber.md) > [IRunEnvironment](./cucumber.irunenvironment.md) > [stdout](./cucumber.irunenvironment.stdout.md) | ||
|
||
## IRunEnvironment.stdout property | ||
|
||
Writable stream where the test run's main output is written (defaults to `process.stdout` if omitted). | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
stdout?: IFormatterStream; | ||
``` |
Oops, something went wrong.