Function: parseTargetString

parseTargetString(targetString): Target

@deprecated(v17) A project graph should be passed to parseTargetString for best accuracy.

Parameters

NameType
targetStringstring

Returns

Target

parseTargetString(targetString, projectGraph): Target

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

Examples:

1parseTargetString('proj:test', graph); // returns { project: "proj", target: "test" } 2parseTargetString('proj:test:production', graph); // returns { project: "proj", target: "test", configuration: "production" } 3

Parameters

NameTypeDescription
targetStringstringtarget reference
projectGraphProjectGraph-

Returns

Target