Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "config"

Manage the configuration of Repodoc.

Provides

  • the interfaces for controlling the creation process
    • Params consists of all parameters the doc module (creation process) needs
    • Args extends Params with some other Parameters needed for run control
  • several functions for managing/persisting/validating/using the configuration parameters

Index

Variables

Const paramsDefault

paramsDefault: Params = <Params>{copyProjectsDocs: true,repoDir: path.join('.'),projectsFile: "angular.json",projectsDocsDir: "compodoc",projectsDescriptionTitle: "Overview",templatesDir: path.join('.', 'templates'),templateFile: "index.hbs",outputDir: path.join('.', 'repodoc'),outputFile: "index.html"}

Functions

askParams

  • askParams(params: Params, askParams: boolean): Promise<Params>
  • Parameters

    • params: Params
    • askParams: boolean

    Returns Promise<Params>

Const initParams

  • initParams(configFile: string): Promise<Params>
  • Parameters

    • configFile: string

    Returns Promise<Params>

Const updateParamsWithArgs

  • Parameters

    Returns Promise<Params>

Const validateParams

  • Validates all processing controlling parameters

    By the way creates the output directory if not existent.

    Parameters

    • params: Params

      Parameter which controls the creation process

    Returns Promise<Params>

    resolves with params if all is fine

    throws Error(s) by reject Error(-List)

Const writeParamsToFile

  • writeParamsToFile(params: Params, configFile: string): Promise<Params>
  • Parameters

    • params: Params
    • configFile: string

    Returns Promise<Params>

Generated using TypeDoc