File tree Expand file tree Collapse file tree 7 files changed +24
-24
lines changed
core-build/gulp-core-build-typescript/src Expand file tree Collapse file tree 7 files changed +24
-24
lines changed Original file line number Diff line number Diff line change 1- // @public
2- class ApiExtractor {
3- public constructor ( config : IExtractorConfig , options ?: IExtractorOptions ) ;
4- public analyzeProject ( options ?: IAnalyzeProjectOptions ) : void ;
5- public static jsonSchema : JsonSchema ;
6- }
7-
81// @public
92class ApiJsonFile {
103 public static jsonSchema : JsonSchema ;
@@ -17,6 +10,13 @@ class ExternalApiHelper {
1710 public static generateApiJson ( rootDir : string , libFolder : string , externalPackageFilePath : string ) : void ;
1811}
1912
13+ // @public
14+ class Extractor {
15+ public constructor ( config : IExtractorConfig , options ?: IExtractorOptions ) ;
16+ public analyzeProject ( options ?: IAnalyzeProjectOptions ) : void ;
17+ public static jsonSchema : JsonSchema ;
18+ }
19+
2020// @public
2121interface IAnalyzeProjectOptions {
2222 projectConfig ?: IExtractorProjectConfig ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import * as path from 'path';
77import * as ts from 'typescript' ;
88import { GulpTask } from '@microsoft/gulp-core-build' ;
99import {
10- ApiExtractor ,
10+ Extractor ,
1111 IExtractorOptions ,
1212 IExtractorConfig
1313} from '@microsoft/api-extractor' ;
@@ -145,7 +145,7 @@ export class ApiExtractorTask extends GulpTask<IApiExtractorTaskConfig> {
145145 }
146146 } ;
147147
148- const extractor : ApiExtractor = new ApiExtractor ( extractorConfig , extractorOptions ) ;
148+ const extractor : Extractor = new Extractor ( extractorConfig , extractorOptions ) ;
149149 extractor . analyzeProject ( ) ;
150150 } catch ( e ) {
151151 completeCallback ( e . message ) ;
Original file line number Diff line number Diff line change 44// NOTE: THIS SOURCE FILE IS FOR DEBUGGING PURPOSES ONLY.
55// IT IS INVOKED BY THE "Run.cmd" AND "Debug.cmd" BATCH FILES.
66
7- import { ApiExtractor } from './extractor/ApiExtractor ' ;
7+ import { Extractor } from './extractor/Extractor ' ;
88
9- const apiExtractor : ApiExtractor = new ApiExtractor (
9+ const extractor : Extractor = new Extractor (
1010 {
1111 compiler : {
1212 configType : 'tsconfig' ,
@@ -26,6 +26,6 @@ const apiExtractor: ApiExtractor = new ApiExtractor(
2626 }
2727) ;
2828
29- apiExtractor . analyzeProject ( ) ;
29+ extractor . analyzeProject ( ) ;
3030
3131console . log ( 'DebugRun completed.' ) ;
Original file line number Diff line number Diff line change 33
44import * as path from 'path' ;
55import * as fs from 'fs' ;
6- import { ApiExtractor } from './extractor/ApiExtractor ' ;
6+ import { Extractor } from './extractor/Extractor ' ;
77
88/**
99 * ExternalApiHelper has the specific use case of generating an API json file from third-party definition files.
@@ -47,7 +47,7 @@ export default class ExternalApiHelper {
4747 fs . mkdirSync ( outputPath ) ;
4848 }
4949
50- const apiExtractor : ApiExtractor = new ApiExtractor ( {
50+ const extractor : Extractor = new Extractor ( {
5151 compiler : {
5252 configType : 'tsconfig' ,
5353 rootFolder : entryPointFolder ,
@@ -69,6 +69,6 @@ export default class ExternalApiHelper {
6969 }
7070 } ) ;
7171
72- apiExtractor . analyzeProject ( ) ;
72+ extractor . analyzeProject ( ) ;
7373 }
7474}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
1212 CommandLineFlagParameter
1313} from '@microsoft/ts-command-line' ;
1414
15- import { ApiExtractor } from '../extractor/ApiExtractor ' ;
15+ import { Extractor } from '../extractor/Extractor ' ;
1616import { IExtractorConfig } from '../extractor/IExtractorConfig' ;
1717
1818import { ApiExtractorCommandLine } from './ApiExtractorCommandLine' ;
@@ -78,10 +78,10 @@ export class RunAction extends CommandLineAction {
7878 console . log ( `Using configuration from ${ configFilename } ` + os . EOL + os . EOL ) ;
7979 }
8080
81- const config : IExtractorConfig = JsonFile . loadAndValidate ( configFilename , ApiExtractor . jsonSchema ) ;
82- const apiExtractor : ApiExtractor = new ApiExtractor ( config , {
81+ const config : IExtractorConfig = JsonFile . loadAndValidate ( configFilename , Extractor . jsonSchema ) ;
82+ const extractor : Extractor = new Extractor ( config , {
8383 localBuild : this . _localParameter . value
8484 } ) ;
85- apiExtractor . analyzeProject ( ) ;
85+ extractor . analyzeProject ( ) ;
8686 }
8787}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import ApiJsonGenerator from '../generators/ApiJsonGenerator';
1919import ApiFileGenerator from '../generators/ApiFileGenerator' ;
2020
2121/**
22- * Options for {@link ApiExtractor .analyzeProject}.
22+ * Options for {@link Extractor .analyzeProject}.
2323 * @public
2424 */
2525export interface IAnalyzeProjectOptions {
@@ -30,7 +30,7 @@ export interface IAnalyzeProjectOptions {
3030}
3131
3232/**
33- * Runtime options for ApiExtractor .
33+ * Runtime options for Extractor .
3434 *
3535 * @public
3636 */
@@ -62,7 +62,7 @@ export interface IExtractorOptions {
6262 * Used to invoke the API Extractor tool.
6363 * @public
6464 */
65- export class ApiExtractor {
65+ export class Extractor {
6666 /**
6767 * The JSON Schema for API Extractor config file (api-extractor-config.schema.json).
6868 */
@@ -91,7 +91,7 @@ export class ApiExtractor {
9191 lodash . cloneDeep ( ApiExtractor . _defaultConfig ) , config ) ;
9292
9393 return normalized ;
94- }
94+ }
9595
9696 public constructor ( config : IExtractorConfig , options ?: IExtractorOptions ) {
9797 this . _logger = lodash . merge ( lodash . cloneDeep ( ApiExtractor . _defaultLogger ) ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ declare const packageDescription: void; // tslint:disable-line:no-unused-variabl
1010
1111export { default as ExternalApiHelper } from './ExternalApiHelper' ;
1212
13- export { ApiExtractor , IAnalyzeProjectOptions , IExtractorOptions } from './extractor/ApiExtractor ' ;
13+ export { Extractor , IAnalyzeProjectOptions , IExtractorOptions } from './extractor/Extractor ' ;
1414export {
1515 IExtractorTsconfigCompilerConfig ,
1616 IExtractorRuntimeCompilerConfig ,
You can’t perform that action at this time.
0 commit comments