Skip to content

Commit 93cc79a

Browse files
committed
Merged master
2 parents 64a5d91 + 50f4fcf commit 93cc79a

9 files changed

Lines changed: 100 additions & 3 deletions

‎.travis.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ script:
1515
- node node_modules/@microsoft/rush/lib/rush.js link
1616
- echo -en 'travis_fold:end:link\\r'
1717
- echo 'Building...' && echo -en 'travis_fold:start:build\\r'
18-
- node node_modules/@microsoft/rush/lib/rush.js rebuild
18+
- node node_modules/@microsoft/rush/lib/rush.js rebuild --production
1919
- echo -en 'travis_fold:end:build\\r'
2020

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"enabled": true,
3+
"apiReviewFolder": "../common/reviews/api",
4+
"apiJsonFolder": "./temp",
5+
"entry": "src/index.ts"
6+
}

‎api-extractor/src/generators/ApiFileGenerator.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ export default class ApiFileGenerator extends ApiItemVisitor {
4040

4141
/**
4242
* Generates the report and writes it to disk.
43-
* @param reportFilename - The output filename
44-
* @param extractor - An Analyzer object representing the input project.
43+
*
44+
* @param reportFilename - The output filename
45+
* @param analyzer - An Analyzer object representing the input project.
4546
*/
4647
public writeApiFile(reportFilename: string, extractor: Extractor): void {
4748
const fileContent: string = this.generateApiFileContent(extractor);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/api-extractor",
5+
"comment": "Added config folder with file to enable api-extractor on itself. rebuild project on previous build.",
6+
"type": "patch"
7+
}
8+
],
9+
"email": "dgaeta@users.noreply.github.com"
10+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
class Analyzer {
2+
// (undocumented)
3+
constructor(errorHandler?: ApiErrorHandler);
4+
public analyze(options: IApiAnalyzerOptions): void;
5+
public static defaultErrorHandler(message: string, fileName: string, lineNumber: number): void;
6+
public docItemLoader: DocItemLoader;
7+
// (undocumented)
8+
public errorHandler: ApiErrorHandler;
9+
// (undocumented)
10+
public package: ApiPackage;
11+
public reportError(message: string, sourceFile: ts.SourceFile, start: number): void;
12+
// (undocumented)
13+
public typeChecker: ts.TypeChecker;
14+
}
15+
16+
class ApiFileGenerator extends ApiItemVisitor {
17+
// (undocumented)
18+
protected _indentedWriter: IndentedWriter;
19+
public static areEquivalentApiFileContents(actualFileContent: string, expectedFileContent: string): boolean;
20+
// (undocumented)
21+
public generateApiFileContent(analyzer: Analyzer): string;
22+
// (undocumented)
23+
protected visitApiEnum(apiEnum: ApiEnum): void;
24+
// (undocumented)
25+
protected visitApiEnumValue(apiEnumValue: ApiEnumValue): void;
26+
// (undocumented)
27+
protected visitApiFunction(apiFunction: ApiFunction): void;
28+
// (undocumented)
29+
protected visitApiMember(apiMember: ApiMember): void;
30+
// (undocumented)
31+
protected visitApiPackage(apiPackage: ApiPackage): void;
32+
// (undocumented)
33+
protected visitApiParam(apiParam: ApiParameter): void;
34+
// (undocumented)
35+
protected visitApiStructuredType(apiStructuredType: ApiStructuredType): void;
36+
public writeApiFile(reportFilename: string, analyzer: Analyzer): void;
37+
}
38+
39+
class ApiJsonGenerator extends ApiItemVisitor {
40+
// (undocumented)
41+
protected apiTagsToSkip: ApiTag[];
42+
// (undocumented)
43+
protected jsonOutput: Object;
44+
// (undocumented)
45+
protected visitApiEnum(apiEnum: ApiEnum, refObject?: Object): void;
46+
// (undocumented)
47+
protected visitApiEnumValue(apiEnumValue: ApiEnumValue, refObject?: Object): void;
48+
// (undocumented)
49+
protected visitApiFunction(apiFunction: ApiFunction, refObject?: Object): void;
50+
// (undocumented)
51+
protected visitApiMember(apiMember: ApiMember, refObject?: Object): void;
52+
// (undocumented)
53+
protected visitApiMethod(apiMethod: ApiMethod, refObject?: Object): void;
54+
// (undocumented)
55+
protected visitApiPackage(apiPackage: ApiPackage, refObject?: Object): void;
56+
// (undocumented)
57+
protected visitApiParam(apiParam: ApiParameter, refObject?: Object): void;
58+
// (undocumented)
59+
protected visitApiProperty(apiProperty: ApiProperty, refObject?: Object): void;
60+
// (undocumented)
61+
protected visitApiStructuredType(apiStructuredType: ApiStructuredType, refObject?: Object): void;
62+
// (undocumented)
63+
public writeJsonFile(reportFilename: string, analyzer: Analyzer): void;
64+
}
65+
66+
class ExternalApiHelper {
67+
public static generateApiJson(rootDir: string, libFolder: string, externalPackageFilePath: string): void;
68+
}
69+
70+
interface IApiAnalyzerOptions {
71+
compilerOptions: ts.CompilerOptions;
72+
entryPointFile: string;
73+
otherFiles?: string[];
74+
}
75+
76+
// WARNING: Unsupported export: ApiErrorHandler

‎common/reviews/api/node-library-build.api.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,4 @@ export declare function watch(watchMatch: string | string[], task: IExecutable):
218218
// WARNING: Unsupported export: removeTripleSlash
219219
// WARNING: Unsupported export: instrument
220220
// WARNING: Unsupported export: mocha
221+
// (No packageDescription for this package)

‎common/reviews/api/package-deps-hash.api.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ interface IPackageDeps {
1010
}
1111
}
1212

13+
// (No packageDescription for this package)

‎common/reviews/api/test-web-library-build.api.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ export function log(message: string): void;
77
// (undocumented)
88
export function logClass(): void;
99

10+
// (No packageDescription for this package)

‎common/reviews/api/web-library-build.api.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,3 +252,4 @@ class WebpackTask extends GulpTask<IWebpackTaskConfig> {
252252
// WARNING: Unsupported export: reload
253253
// WARNING: Unsupported export: trustDevCert
254254
// WARNING: Unsupported export: untrustDevCert
255+
// (No packageDescription for this package)

0 commit comments

Comments
 (0)