Movatterモバイル変換


[0]ホーム

URL:


Skip to content
NxNxDocs
ContactTry Nx Cloud for free
GitHubYouTubeXDiscord

parseTargetString(targetString,projectGraph):Target

Parses a target string into {project, target, configuration}

Examples:

parseTargetString("proj:test", graph)// returns { project: "proj", target: "test" }
parseTargetString("proj:test:production", graph)// returns { project: "proj", target: "test", configuration: "production" }

Parameters

NameTypeDescription
targetStringstringtarget reference
projectGraphProjectGraph-

Returns

Target

parseTargetString(targetString,ctx):Target

Parses a target string into {project, target, configuration}. Passing a fullExecutorContext enables the targetString to reference the current project.

Examples:

parseTargetString("test", executorContext)// returns { project: "proj", target: "test" }
parseTargetString("proj:test", executorContext)// returns { project: "proj", target: "test" }
parseTargetString("proj:test:production", executorContext)// returns { project: "proj", target: "test", configuration: "production" }

Parameters

NameType
targetStringstring
ctxExecutorContext

Returns

Target


[8]ページ先頭

©2009-2025 Movatter.jp