Skip to content

Commit ec5ca2e

Browse files
authored
set up docgen and api review for packages-exp (#2868)
* set up doc gen tools * save progress * fix tsdocs * create docs without -exp in package name * enable api-report in app-types-exp * set up doc and api review pipeline * prepend underscore to internal only symbols * remove api review * [AUTOMATED]: Prettier Code Styling * [AUTOMATED]: License Headers * fix prepush hook * add api report for app-types * manually change the report file for testing * [AUTOMATED]: API Reports * centralize api review location * rename docgen script * enable json with comment in github
1 parent 60c8b89 commit ec5ca2e

29 files changed

+977
-93
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.json linguist-language=JSON-with-Comments

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,13 @@ typings/
8181

8282
# NPM Lockfiles
8383
package-lock.json
84+
85+
# temp folder used by api-extractor
86+
temp
87+
packages-exp/**/temp
88+
89+
# temp markdowns generated for individual SDKs
90+
packages-exp/**/docs
91+
92+
# files generated by api-extractor that should not be tracked
93+
tsdoc-metadata.json

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
// Exclude installed dependencies from searches too
1010
"**/node_modules": true
1111
},
12-
"typescript.tsdk": "node_modules/typescript/lib"
12+
"typescript.tsdk": "node_modules/typescript/lib",
13+
"files.associations": { "*.json": "jsonc" }
1314
}

common/api-review/app-exp.api.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
## API Report File for "@firebase/app-exp"
2+
3+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4+
5+
```ts
6+
7+
import { FirebaseApp } from '@firebase/app-types-exp';
8+
import { FirebaseAppConfig } from '@firebase/app-types-exp';
9+
import { FirebaseOptions } from '@firebase/app-types-exp';
10+
import { LogCallback } from '@firebase/logger';
11+
import { LogLevel } from '@firebase/logger';
12+
import { LogOptions } from '@firebase/logger';
13+
14+
// @public
15+
export function deleteApp(app: FirebaseApp): Promise<void>;
16+
17+
// @public
18+
export function getApp(name?: string): FirebaseApp;
19+
20+
// @public
21+
export function getApps(): FirebaseApp[];
22+
23+
// @public
24+
export function initializeApp(options: FirebaseOptions, name?: string): FirebaseApp;
25+
26+
// @public
27+
export function initializeApp(options: FirebaseOptions, config?: FirebaseAppConfig): FirebaseApp;
28+
29+
export { LogLevel }
30+
31+
// @public
32+
export function onLog(logCallback: LogCallback | null, options?: LogOptions): void;
33+
34+
// @public
35+
export function registerVersion(libraryKeyOrName: string, version: string, variant?: string): void;
36+
37+
// @public
38+
export const SDK_VERSION: string;
39+
40+
// @public
41+
export function setLogLevel(logLevel: LogLevel): void;
42+
43+
44+
```
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
## API Report File for "@firebase/app-types-exp"
2+
3+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4+
5+
```ts
6+
7+
import { ComponentContainer } from '@firebase/component';
8+
9+
// @public
10+
export interface FirebaseApp {
11+
automaticDataCollectionEnabled: boolean;
12+
13+
readonly name: string;
14+
15+
readonly options: FirebaseOptions;
16+
}
17+
18+
// @public (undocumented)
19+
export interface FirebaseAppConfig {
20+
// (undocumented)
21+
automaticDataCollectionEnabled?: boolean;
22+
// (undocumented)
23+
name?: string;
24+
}
25+
26+
// @internal (undocumented)
27+
export interface _FirebaseAppInternal extends FirebaseApp {
28+
// (undocumented)
29+
checkDestroyed(): void;
30+
// (undocumented)
31+
container: ComponentContainer;
32+
// (undocumented)
33+
isDeleted: boolean;
34+
}
35+
36+
// @public (undocumented)
37+
export interface FirebaseOptions {
38+
// (undocumented)
39+
apiKey?: string;
40+
// (undocumented)
41+
appId?: string;
42+
// (undocumented)
43+
authDomain?: string;
44+
// (undocumented)
45+
databaseURL?: string;
46+
// (undocumented)
47+
measurementId?: string;
48+
// (undocumented)
49+
messagingSenderId?: string;
50+
// (undocumented)
51+
projectId?: string;
52+
// (undocumented)
53+
storageBucket?: string;
54+
}
55+
56+
// @public (undocumented)
57+
export interface PlatformLoggerService {
58+
// (undocumented)
59+
getPlatformInfoString(): string;
60+
}
61+
62+
63+
// (No @packageDocumentation comment for this package)
64+
65+
```

0 commit comments

Comments
 (0)