Skip to content

Commit

Permalink
refactor: spfx generator component name (#11502)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayzhang authored Apr 29, 2024
1 parent 21e98f8 commit 622a928
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,7 @@ export class SPFxGenerator {
}

export class SPFxGeneratorNew extends DefaultTemplateGenerator {
componentName = "spfx-new-generator";
public activate(context: Context, inputs: Inputs): boolean {
const capability = inputs[QuestionNames.Capabilities] as string;
const spfxSolution = inputs[QuestionNames.SPFxSolution];
Expand Down Expand Up @@ -913,8 +914,8 @@ export class SPFxGeneratorNew extends DefaultTemplateGenerator {
}

export class SPFxGeneratorImport extends DefaultTemplateGenerator {
componentName = "spfx-import-generator";
importDetails: string[] = [];

public activate(context: Context, inputs: Inputs): boolean {
const capability = inputs[QuestionNames.Capabilities] as string;
const spfxSolution = inputs[QuestionNames.SPFxSolution];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class DefaultTemplateGenerator implements IGenerator {
return ok(undefined);
}

// override this method to provide information of templates to be generated
// override this method to 1) do pre-step before template download and 2) provide information of templates to be downloaded
public getTemplateInfos(
context: Context,
inputs: Inputs,
Expand All @@ -68,7 +68,7 @@ export class DefaultTemplateGenerator implements IGenerator {
return Promise.resolve(ok([{ templateName, language }]));
}

// override this method to do post process
// override this method to do post-step after template download
public post(
context: Context,
inputs: Inputs,
Expand Down

0 comments on commit 622a928

Please sign in to comment.