Module "core/machine/yaml/configureYaml"
Type aliases
CommandMaker
Type parameters
EventMaker
Type parameters
YamlCommandHandlerRegistration
YamlEventHandler
Type parameters
Functions
awaitIterable
- awaitIterable<G>(elems: Record<string, G>, cb: (v: G, k: string) => Promise<any>): Promise<void>
-
Type parameters
Parameters
-
elems: Record<string, G>
-
cb: (v: G, k: string) => Promise<any>
configureYaml
-
Type parameters
Parameters
-
patterns: string | string[]
-
Returns Promise<Configuration>
createGoalData
-
Type parameters
Parameters
-
patterns: string | string[]
-
cwd: string
-
-
-
requireCommands
-
Parameters
-
cwd: string
-
Default value pattern: string[] = ["commands/**.js", "lib/commands/**.js"]
requireConfiguration
-
Parameters
-
cwd: string
-
Default value pattern: string[] = ["config.js", "lib/config.js"]
requireEvents
-
Parameters
-
cwd: string
-
Default value pattern: string[] = ["events/**.js", "lib/events/**.js"]
requireExtensions
- requireExtensions<EXT>(cwd: string, pattern: string[], cb?: (v: EXT, k: string, e: Record<string, EXT>) => void): Promise<Record<string, EXT>>
-
Type parameters
Parameters
-
cwd: string
-
pattern: string[]
-
Default value cb: (v: EXT, k: string, e: Record<string, EXT>) => void = () => {}
-
- (v: EXT, k: string, e: Record<string, EXT>): void
-
Parameters
-
v: EXT
-
k: string
-
e: Record<string, EXT>
Returns void
Returns Promise<Record<string, EXT>>
requireGoals
- requireGoals(cwd: string, pattern?: string[]): Promise<Record<string, GoalMaker>>
-
Parameters
-
cwd: string
-
Default value pattern: string[] = ["goals/**.js", "lib/goals/**.js"]
requireIngesters
- requireIngesters(cwd: string, pattern?: string[]): Promise<string[]>
-
Parameters
-
cwd: string
-
Default value pattern: string[] = ["ingesters/**.graphql", "lib/graphql/ingester/**.graphql"]
Returns Promise<string[]>
requireTests
-
Parameters
-
cwd: string
-
Default value pattern: string[] = ["tests/**.js", "lib/tests/**.js"]
resolvePaths
- resolvePaths(cwd: string, patterns: string | string[], watch?: boolean): Promise<string[]>
-
Parameters
-
cwd: string
-
patterns: string | string[]
-
Default value watch: boolean = false
Returns Promise<string[]>
Load one or more yaml files to create goal sets
When providing more than one yaml file, files are being loaded in provided order with later files overwriting earlier ones.