( specifier: string, abbreviatedProjectName?: string, abbreviatedTargetName?: string, )
| 334 | * Supports abbreviated target specifiers (examples: `::`, `::development`, or `:build:production`). |
| 335 | */ |
| 336 | export function targetFromTargetString( |
| 337 | specifier: string, |
| 338 | abbreviatedProjectName?: string, |
| 339 | abbreviatedTargetName?: string, |
| 340 | ): Target { |
| 341 | const tuple = specifier.split(':', 3); |
| 342 | if (tuple.length < 2) { |
| 343 | throw new Error('Invalid target string: ' + JSON.stringify(specifier)); |
| 344 | } |
| 345 | |
| 346 | return { |
| 347 | project: tuple[0] || abbreviatedProjectName || '', |
| 348 | target: tuple[1] || abbreviatedTargetName || '', |
| 349 | ...(tuple[2] !== undefined && { configuration: tuple[2] }), |
| 350 | }; |
| 351 | } |
| 352 | |
| 353 | /** |
| 354 | * Schedule a target, and forget about its run. This will return an observable of outputs, that |
no outgoing calls
no test coverage detected