Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/recipe-factory"

Index

Type aliases

RecipeImpl

RecipeImpl: function

Type declaration

    • (options: Option & RecipeImplOption, config?: Config, done?: any): void | Promise<void>
    • Parameters

      Returns void | Promise<void>

Variables

Const extglob

extglob: any = require('extglob')

Const matcher

matcher: any = require('matcher')

Functions

makeOptions

  • makeOptions<O>(matchKeys: any, options: O, context: Context): O

pickConfig

  • pickConfig<T>(configs: (T & RecipeImplConfig)[], filePath: string, baseFolder?: string, subfix?: string): T
  • 从配置中匹配符合filePath的配置

    Type parameters

    Parameters

    • configs: (T & RecipeImplConfig)[]
    • filePath: string
    • Default value baseFolder: string = ""
    • Default value subfix: string = ""

    Returns T

recipeFactory

  • Type parameters

    • O

    • C

    Parameters

    • recipeImpl: RecipeImpl<O, C>
    • Default value options: O = {} as O

      静态参数,string类型可写向前匹配 $0~$9

    • Optional configs: (C & RecipeImplConfig)[]

      动态配置,根据depFile查找RecipeConfig[],传给recipe符合条件的config

    Returns RecipeDeclaration

Generated using TypeDoc