Function: parseTargetString
โธ 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" }
3Parameters
| Name | Type | Description |
|---|---|---|
targetString | string | target reference |
projectGraph | ProjectGraph | - |
Returns
โธ parseTargetString(targetString, ctx): Target
Parses a target string into {project, target, configuration}. Passing a full ExecutorContext enables the targetString to reference the current project.
Examples:
1parseTargetString('test', executorContext); // returns { project: "proj", target: "test" }
2parseTargetString('proj:test', executorContext); // returns { project: "proj", target: "test" }
3parseTargetString('proj:test:production', executorContext); // returns { project: "proj", target: "test", configuration: "production" }
4Parameters
| Name | Type |
|---|---|
targetString | string |
ctx | ExecutorContext |