Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseTemplate

Implements

Index

Constructors

Properties

requiredForgeVersion: any = currentForgeVersion
templateDir: string = tmplDir

Accessors

  • get devDependencies(): string[]

Methods

  • copy(source: string, target: string): Promise<void>
  • copyTemplateFile(destDir: string, basename: string): Promise<void>
  • initializePackageJSON(directory: string): Promise<void>
  • updateFileByLine(inputPath: string, lineHandler: (line: string) => string, outputPath?: string): Promise<void>
  • Parameters

    • inputPath: string
    • lineHandler: (line: string) => string
        • (line: string): string
        • Parameters

          • line: string

          Returns string

    • Optional outputPath: string

    Returns Promise<void>